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

In case of error 504 the API returns HTML instead of JSON #1092

Merged
merged 1 commit into from Sep 17, 2020

Conversation

KasukabeDefenceForce
Copy link
Contributor

Problem

In case of error 504 the API returns HTML instead of JSON

Solution

Added error handlers for the respective errors

@pep8speaks
Copy link

Hello @AbhinavOhri! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 171:1: W293 blank line contains whitespace
Line 172:5: E303 too many blank lines (2)

Copy link
Collaborator

@paramsingh paramsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to merge this, we should have these error handlers.

However, the HTML is actually returned on the gateway level, and flask code isn't even run, as such this problem can't be solved by changing code in LB, it needs gateway level changes which I guess only zas can do.

@paramsingh paramsingh merged commit 1b0f0ec into metabrainz:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants