-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Retry issue after migration to 13.5 #2689
Comments
Our deeper analysis shown that this regression appeared in 13.3 and possible reason is the replacement
with
in Http2Client. |
So IOException actually happens then we try to read response body (in IOUtils.toString):
And main issue is that this exception occurs outside of Feign client and that means retry logic would not be executed. |
If If you want to reproduce the previous logic, the return type should be filled with byte[] create(var city) |
Hi @hdfg159 I'm fine with that but it's breaking change and should be mentioned in release notes and documentation. |
|
Hi
We use feign-java11 and feign-gson dependencies in our project and after we migrated from 13.1 to 13.5 one of our tests started failing.
This test uses WireMock and verifies that if malformed response is sent to the client then RetryableException is thrown.
In 13.1 this test passed but in 13.5 fails. Our investigation shown that in both Feign versions IOException is thrown but in 13.1 it's correctly caught in SynchronousMethodHandler.executeAndDecode:
java.io.IOException: chunked transfer encoding, state: READING_LENGTH
And in 13.5 it's not caught. The last line that was executed is
cf = sendAsync(req, responseHandler, null, null);
in HttpClientImpl.send
The text was updated successfully, but these errors were encountered: