ternandsparrow / wild-orchid-watch-pwa

Progressive Web App for the Wild Orchid Watch citizen science project
https://app.wildorchidwatch.org
4 stars 4 forks source link

Handle "iNat is down for maintenance" gracefully #24

Open tomsaleeba opened 4 years ago

tomsaleeba commented 4 years ago

When iNat is down, all API requests will get a HTTP 503 and the response will be this text/html page: image

We can detect this and show the user a message that indicates that iNat might be down at the moment. I don't know if iNat run a status page but we can always suggest to the user:

"it looks like iNaturalist is unavailable/down for maintenance at the moment. Please try again later."

The user can still do local things on the app, but just can't sync anything.