-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return the body alongside the status in the baseRetryPolicy
in case of error
#212
Comments
I found a way to return the response body by setting the errorHandler like this:
|
@FFCMSouza I think there may be a small typo over there as the first check should be that
|
Hi @adrianlungu. |
Presently, when the following case is true inside the
baseRetryPolicy
:the only things returned are the
status
and thestatusCode
, however, in some cases, the server returns more information regarding the error within the response's body.Adding the
response body
to the error returned by thebaseRetryPolicy
would be helpful for logging and debugging purposes.The text was updated successfully, but these errors were encountered: