Opened 16 months ago

Closed 9 months 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: master
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 Changed 16 months ago by Ivan Chernoff

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

comment:2 Changed 16 months ago by Claude Paroz

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 16 months ago by Tim Graham

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

comment:4 Changed 9 months ago by Tim Graham

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