@glance-apps/sync 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/providers.js +6 -1
package/package.json
CHANGED
package/src/providers.js
CHANGED
|
@@ -246,7 +246,12 @@ export function createProviders(engineConfig) {
|
|
|
246
246
|
// nativeHttpRequest != null means the Android HTTP bridge is available,
|
|
247
247
|
// which bypasses Koofr's server-side block on Vercel proxy IPs.
|
|
248
248
|
const onAndroid = engineConfig.nativeHttpRequest != null;
|
|
249
|
-
if (!onAndroid)
|
|
249
|
+
if (!onAndroid) {
|
|
250
|
+
if (engineConfig.isHostedApp) {
|
|
251
|
+
return { success: false, error: "Koofr blocks requests from dayglance.app's servers. Use a self-hosted instance or the Android app to connect directly." };
|
|
252
|
+
}
|
|
253
|
+
return { success: false, error: "Access forbidden. If requests are going through a proxy, Koofr may be blocking that server's IP." };
|
|
254
|
+
}
|
|
250
255
|
return { success: false, error: 'Access forbidden. Check that your app password is correct and has not been revoked.' };
|
|
251
256
|
}
|
|
252
257
|
return { success: false, error: `Unexpected response: ${res.status}${res.statusText ? ' ' + res.statusText : ''}` };
|