UnknownHttpStatusCodeException is missing the response body #24595
UnknownHttpStatusCodeException is missing the response body #24595awoodbury wants to merge 1 commit intospring-projects:masterfrom
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.