Open
Description
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.
extension.stubFor(post(urlEqualTo("/cities")).willReturn(aResponse().withFault(Fault.MALFORMED_RESPONSE_CHUNK)));
assertThrows(RetryableException.class, () -> cityClient.create(city));
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
Metadata
Metadata
Assignees
Labels
No labels