Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reporting when site is down #43

Open
mitchcohen opened this issue Jan 17, 2022 · 1 comment
Open

Error reporting when site is down #43

mitchcohen opened this issue Jan 17, 2022 · 1 comment

Comments

@mitchcohen
Copy link
Contributor

The cwmars site is currently down for maintenance, which is fine. The web site reports an appropriate message, but the iOS app gives a generic "response not JSON" error for any action.

The responses appear to be 404's (not found). Ideally these would be 503's (Service Unavailable), and/or return JSON for JSON requests.

Attached is the HTML response from a desktop Safari session (zipped), and two iPhone screenshots. I'm assuming the server is returning 404 with HTML for JSON requests when this occurs, but I did not verify. One option is to catch 404's, and if the 404 contains HTML, display that in a web view.

IMG_1109
IMG_1110
CW Mars down for maintainance 404.html.zip

@kenstir
Copy link
Owner

kenstir commented Jan 17, 2022

I am aware of this issue but it hasn't received focussed attention. First, there are 8 or 9 library systems using Hemlock, and I don't know that they all do maintenance the same way. Second, this maintenance occurs usually once a year, so it is not frequent.

I don't see how the web results would be useful; the app does everything through the OSRF gateway. I definitely don't like the idea of embedding a browser for this once a year occurrence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants