-
Notifications
You must be signed in to change notification settings - Fork 38.4k
UnknownHttpStatusCodeException is missing the response body #24595
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
UnknownHttpStatusCodeException is missing the response body #24595
Conversation
Updates DefaultResponseErrorHandler.handleError(ClientHttpReponse) to read response body once and reuse it for creating exception message and parameter.
Thanks for the PR. Based on the provided tests, I assume the undesired behavior is an empty body in the Just a few questions...
|
That is correct - the undesired behavior is the empty body in the Yes it used to work correctly in 5.1.10; and then upgraded to 5.2.3 and the undesired behavior appeared. |
I believe this was introduced in this commit as part of #1956. |
Updates
DefaultResponseErrorHandler.handleError(ClientHttpReponse)
to readthe response body once and reuse it for creating exception message and parameter.