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
In my case I'm using JSONAPI, since the error format is known, maybe we can parse the error?
Or just JSON.stringify(payload) ?
This would be very useful for people that use services like sentry.io. I'm going to override these locally for now, but would like to know what you think of this.
Thanks in advance for your inputs!
The text was updated successfully, but these errors were encountered:
Sure, I just don't know how to create a test for it, which I imagine would be needed for the PR.
Anyway do you think the best option is to stringify the payload and truncate it (in case it's a big payload) Or look at any of the attributes returned in the JSONAPI errors object?
Hi,
When I get a JSONAPI error from the API I see this message:
The
[object Object]
is the payload. Maybe there is a better way of showing this since[object Object]
is not very helpful.This message is generated here:
data/addon/adapters/rest.js
Line 1192 in 24f4120
In my case I'm using JSONAPI, since the error format is known, maybe we can parse the error?
Or just
JSON.stringify(payload)
?This would be very useful for people that use services like sentry.io. I'm going to override these locally for now, but would like to know what you think of this.
Thanks in advance for your inputs!
The text was updated successfully, but these errors were encountered: