You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 readabletoString()
function. Instead, it just returns themessage
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 inRequestFilter
, 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.The text was updated successfully, but these errors were encountered: