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
Currently in unmarshall it tries to read the error into an APIError struct but if it doesn't match the error text is lost forever.
It would be nice if
The APIError struct matched the error json (I'm not sure if this applies to just some error responses or what)
If deserialization fails there the raw body text is available to client libraries
Error json payloads are unlikely to be large so I don't think deserialization needs to happen directly from the body reader, it could be buffered entirely up front.
The text was updated successfully, but these errors were encountered:
Currently in
unmarshall
it tries to read the error into an APIError struct but if it doesn't match the error text is lost forever.It would be nice if
Error json payloads are unlikely to be large so I don't think deserialization needs to happen directly from the body reader, it could be buffered entirely up front.
The text was updated successfully, but these errors were encountered: