OpenFeign/feign
ErrorDecoder not invoked when Apache Http client throws checked exception
Chiusa
#1487 aperta il 17 ago 2021
buggood first issuehelp wanted
Metriche repository
- Star
- (9070 stelle)
- Metriche merge PR
- (Merge medio 2g 17h) (71 PR mergiate in 30 g)
Descrizione
Hi, I have discovered issue when using feign.httpclient.ApacheHttpClient.
In some cases Apache client throws ProtocolException which is a checked exception. This happens for example when server returned 303 HTTP code but there was no location header.
In such case Feign proxy throws UndeclaredThrowableException instead of invoking ErrorDecoder.