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
{{ message }}
Repository navigation
FeignException::responseBody() returns request body instead of response body #2618
I wanted to retrieve response body from a FeignException, but FeignException::responseBody() returns request body of my request. Is it intentional or is it a bug? One of the FeignException constructors, as the parameter name implies, expects response body. However, in the errorReading method request.body() is passed instead.
Hey @gromspys, I want to work around feign and learn about it. Do we need to change the constructor params since it expects the response body as byte[] and response? getBody() is a String in nature.
Activity
gromspys commentedon Oct 24, 2024
Yes. It looks like a bug.
aryanttripathi commentedon Nov 3, 2024
Hey @gromspys, I want to work around feign and learn about it. Do we need to change the constructor params since it expects the response body as byte[] and response? getBody() is a String in nature.
What do you think we can do here?
Return response body in FeignException from errorReading (OpenFeign#2618
test: assert response body in errorReading FeignException (OpenFeign#…
test: assert response body in errorReading for async client modules (O…
Return response body in FeignException from errorReading (#2618) (#3415)