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 do a request to an API which throws errors in specific scenarios. The error reaches the browser as it should. The request's response on the browser's devtools is:
errors: [{message: "Account with provided email already exists", type: "ValidationError"}]
But when I do console.log(JSON.stringify(e, null, 2)) in the try catch block, I get:
I do a request to an API which throws errors in specific scenarios. The error reaches the browser as it should. The request's response on the browser's devtools is:
errors: [{message: "Account with provided email already exists", type: "ValidationError"}]
But when I do
console.log(JSON.stringify(e, null, 2))
in the try catch block, I get:{ "name": "StatusError", "statusCode": 422, "res": { "statusCode": 422 }, "headers": { "content-length": "111", "content-type": "application/json; charset=utf-8" } }
There is no message in the error object.
The text was updated successfully, but these errors were encountered: