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

Return JSON data on 500 errors #23

Open
MarechJ opened this issue Aug 3, 2020 · 0 comments
Open

Return JSON data on 500 errors #23

MarechJ opened this issue Aug 3, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request python Pull requests that update Python code

Comments

@MarechJ
Copy link
Owner

MarechJ commented Aug 3, 2020

Currently the django application (rconweb module) returns HTML when an error happens backend side.
Which is then displayed to the user but the message is completly useless because it's just about "not being able to parse JSON"

Add a global error handler that turns expections into a nicely formated json structure (gotta find how by reading the Django docs)

@MarechJ MarechJ added bug Something isn't working enhancement New feature or request python Pull requests that update Python code labels Aug 3, 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 enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant