Opened 8 years ago
Closed 8 years ago
#28510 closed New feature (wontfix)
Add JSON reporter for technical_500_response (debug) view
| Reported by: | Ivan Chernoff | Owned by: | Ivan Chernoff |
|---|---|---|---|
| Component: | Error reporting | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description
Hi, fellows.
I was seeing file django/views/debug.py. Based on it, on ajax request exception django responds in plain/text format. But when you are debugging API calls in something like postman or soap-ui, it's prettier to see json, because it has better viewer.
Propose to change plain/text response to application/json. if client send 'Accept: application/json'.
Change History (4)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
| Patch needs improvement: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:3 by , 8 years ago
| Component: | Utilities → Error reporting |
|---|---|
| Summary: | Add json reporter for debug view → Add JSON reporter for technical_500_response (debug) view |
comment:4 by , 8 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | assigned → closed |
The reporter has withdrawn the ticket, "I don't think this is a needed one after all."
Note:
See TracTickets
for help on using tickets.
Made simple implementation in PR: https://github.com/django/django/pull/8947