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

Django error message not being shown when debug mode is enabled #3071

Closed
melton-jason opened this issue Mar 1, 2023 · 1 comment
Closed
Labels
1 - Bug Incorrect behavior of the product good first issue res:duplicate Duplicate of an existing issue

Comments

@melton-jason
Copy link
Contributor

Describe the bug
Currently, when debug mode is enabled the frontend directly parses the response as-is form the backend when an exception occurs. This output is not nearly as clean as Django's formatted error responses.
This bug may have arose due to an update in dependencies.

It seems as if the backend is returning a plain text response, hence the formatting. Instead, the backend should return an HTML response so it can be formatted correctly

The Django documentation on error reporting may be beneficial in solving this issue

  • Before the Bug

image

  • The bug causing the raw response to be interpreted in an error dialog.

image

Both of the pictures are from #2929 (comment)

@melton-jason melton-jason added 1 - Bug Incorrect behavior of the product good first issue pri:unknown labels Mar 1, 2023
@melton-jason
Copy link
Contributor Author

Duplicate of #3343

@melton-jason melton-jason marked this as a duplicate of #3343 Jun 12, 2023
@melton-jason melton-jason added the res:duplicate Duplicate of an existing issue label Jun 12, 2023
@melton-jason melton-jason closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product good first issue res:duplicate Duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

1 participant