-
Notifications
You must be signed in to change notification settings - Fork 38.5k
HttpClientErrorException should provide access to response headers [SPR-7938] #12593
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
Comments
Arjen Poutsma commented Moved to SPR. |
Scott Andrews commented |
Dave Syer commented I'm not sure if anyone tested this in a live system, but there is likely to be a nasty problem waiting for anyone using it out of the box. I think that the default implementation of HttpClientResponse (the JDK one) barfs if you try and get the headers from an error response, or even a non-OK one in my experience. It might be a good idea to be defensive about this line:
Wrap it in a try/catch or something? |
Chris Beams commented Thanks for the heads-up, Dave. Scott, can you follow up and look into this? |
Scott Andrews commented
|
Rossen Stoyanchev commented If I'm not mistaken the issue is specifically for a 401 response? #14004 |
Uh oh!
There was an error while loading. Please reload this page.
Julian Reschke opened SPR-7938 and commented
It would be good if HttpClientErrorException would not only provide access to the response body but also to response headers,
Sub-tasks:
Referenced from: commits bca2357, c471bdd, b992c3d
2 votes, 5 watchers
The text was updated successfully, but these errors were encountered: