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

Always show error message on failed ajax requests #845

Merged
merged 1 commit into from
Sep 18, 2022

Conversation

tobser
Copy link
Contributor

@tobser tobser commented Feb 28, 2022

If misterhouse is run behind web proxy (tested with nginx), ajax
requests may be answered with an html error page if misterhouse is not
running. In this case no valid JSON is returned. This fix simply catches
the JSON parse exception and adds http status + text to the system
message. Before, the message was never shown because the exception was not
handled.

If misterhouse is run behind web proxy (tested with nginx), ajax
requests may be answered with an html error page if misterhouse is not
running. In this case no valid JSON is returned. This fix simply catches
the JSON parse exception and adds http status + text to the system
message. Before, the message was never shown because the exception was not
handled.
@hplato hplato merged commit de0b89e into hollie:master Sep 18, 2022
@hplato hplato mentioned this pull request Aug 22, 2023
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

Successfully merging this pull request may close these issues.

2 participants