Opened 7 years ago

Closed 6 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 Ivan Chernoff, 7 years ago

Made simple implementation in PR: https://github.com/django/django/pull/8947

comment:2 by Claude Paroz, 7 years ago

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:3 by Tim Graham, 7 years ago

Component: UtilitiesError reporting
Summary: Add json reporter for debug viewAdd JSON reporter for technical_500_response (debug) view

comment:4 by Tim Graham, 6 years ago

Resolution: wontfix
Status: assignedclosed

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.
Back to Top