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
Problem: If a response results in an error when being unmarshaled, the response is lost. This makes it impossible to differentiate a 200 response from a 400 response.
This code highlights the issue. If I receive an unmarshaling error, I don't know if the fault was mine or not.
Suggested fix: Wrap the err with content included, or use some structured error that contains more information about this issue.
I can work on this, but how to handle this case should be decided by more than just me.
The text was updated successfully, but these errors were encountered:
Problem: If a response results in an error when being unmarshaled, the response is lost. This makes it impossible to differentiate a 200 response from a 400 response.
This code highlights the issue. If I receive an unmarshaling error, I don't know if the fault was mine or not.
Suggested fix: Wrap the
err
withcontent
included, or use some structured error that contains more information about this issue.I can work on this, but how to handle this case should be decided by more than just me.
The text was updated successfully, but these errors were encountered: