OpenFeign/feign
ErrorDecoder not invoked when Apache Http client throws checked exception
Fermée
#1 487 ouverte le 17 août 2021
buggood first issuehelp wanted
Métriques du dépôt
- Stars
- (9 070 étoiles)
- Métriques de merge PR
- (Merge moyen 2j 17h) (71 PRs mergées en 30 j)
Description
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.