Skip to content

return explanation error for a broken Json call #474

@arhimede

Description

@arhimede

Feature Request

Q A
New Feature yes
RFC yes
BC Break no

Summary

For instance, I am sending a bad json body to an endpoint

I am getting the below response
{"title":"Internal Server Error","type":"https://datatracker.ietf.org/doc/html/rfc9110#name-500-internal-server-error","status":500,"detail":"An unknown error occurred."}

In logs at the server level, i have

"priority":3,"priorityName":"ERR","message":"Error when parsing JSON request body: Syntax error","extra":{"\u0000*\u0000message":"Error when parsing JSON request body: Syntax error",ETC

can we somehow return a more detailed error in this case to the client ?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions