sync http endpoints unavailability should not pop up error messages to the front screen
- /e/ version: 0.18
- Device model(s): any
Summary
when cal/card/webdav sync endpoints are unavailable, Accountmanager pops the error message to the front screen.
The error message is hard for users to understand nor as with notifications easy to suppress. Unavailability is not "actionable" and not at all times relevant to the user.
The problem
Steps to reproduce
- make webdav sync endpoints unavailable in a sandbox
What is the current behavior?
- accountmanager will throw errors to the screen that are hard to interpret
What is the expected correct behavior?
- hide the error until a significant error counter or duration is reached
Technical informations
see the forum issues:
- #1414 (closed)
- https://community.e.foundation/t/getting-frequent-http-502-bad-gateway-http-504-gateway-time-out-errors/34986
- https://community.e.foundation/t/504-http-gateway-time-out/34989
- https://community.e.foundation/t/debug-synchronization-error/35033
- https://community.e.foundation/t/http-502-bad-gateway/34984 (has screenshot)
Solutions
Workaround
current sync interval are at 2 minutes for adressbook / calendar / tasks. With a longer interval span (30min) the likelihood of seeing availability problems is lessened.
Possible fixes
if unavailability is sustained for a longer time (1-2hrs), then maybe bubble up an notification with a helpful text ("x not synced for 1 hour"), possibly link to the status page of the service. Unavailability is not at all times relevant to the user.
The custom error page can be configured to be shown by the loadbalancer where /e/ has control or saved for the account at creation time. Exponential back-off mechanism can be used to not retry every 2 minutes to ease network load on errors.