Skip to content

JsonError needs an easy way to convert the whole thing to a string #1059

@distinctdan

Description

@distinctdan

Feature description

I'm trying to log the error when my server returns a 400. This has turned out to be difficult because JsonError doesn't have a human readable toString() function. Instead, it just returns the message and ignores all the embedded errors, which is what I actually care about. I didn't even expect to have to deal with a response object here in RequestFilter, I expected to be able get the response body as a string. I'm not sure having a response object is bad, it just makes it hard to log the response. I could serialize it, but then I'm double serializing, which is inefficient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions