Opened 3 months ago

Last modified 3 months ago

#28510 assigned New feature

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 (3)

comment:1 Changed 3 months ago by Ivan Chernoff

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

comment:2 Changed 3 months ago by Claude Paroz

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 3 months ago by Tim Graham

Component: UtilitiesError reporting
Summary: Add json reporter for debug viewAdd JSON reporter for technical_500_response (debug) view
Note: See TracTickets for help on using tickets.
Back to Top