I have been running it this way for over a month without seeing the AppOfflineError issue so I might have hit some sort of limit and the server started blocking me?
Regardless, after setting the URL based on the python call: anvil.server.get_app_origin(), everything works as expected.
I have been trying to make a reproducible case to this App is offline error. However I still could not pinpoint what causes the issue.
I am working on chrome, with couple of extensions, however even if I go to incognito mode, with disabled extensions, the error still occurs.
As for the error I can confirm, that it is due to a “failed to fetch” issue. I am not sure if this is helpful, but here it goes.
Uncaught (in promise) TypeError: Failed to fetch
at o (service-worker:1:22421)
at Generator._invoke (service-worker:1:23484)
at Generator.next (service-worker:1:22601)
at c (service-worker:1:46610)
at i (service-worker:1:46793)
Python exception: AppOfflineError: App is offline
Edit: added error source
The error message points here:
return t.prev = 13, t.next = 16, fetch(r.request.clone());
Let me know if you need any additional info regarding this.