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

503 errors are not in json #3

Open
dojeda opened this issue Mar 4, 2020 · 0 comments
Open

503 errors are not in json #3

dojeda opened this issue Mar 4, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dojeda
Copy link
Member

dojeda commented Mar 4, 2020

Using a kubernetes deployment and ingrss, if one artificially creates a service gap by resizing to zero the number of app pods and the API is used, a 503 error response code by ingress (as expected), but it will not be in json even when the accept header requested it.

curl -D- -H 'Accept: application/json' https://some-server/api/v1/data/files/

This could be solved by some additional configuration of the nginx service using a custom error backend service (which is used only when ingress/nginx does not find a match to the request), but it does not seem like a trivial task. Maybe there should be a quetzal server that only generates errors in the correct format.

@dojeda dojeda added the bug Something isn't working label Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant