OpenFeign/feign

ErrorDecoder not invoked when Apache Http client throws checked exception

Fechada

#1.487 aberto em 17 de ago. de 2021

 (8 comentários) (0 reação) (1 responsável)Java (1.911 forks)batch import
buggood first issuehelp wanted

Métricas do repositório

Stars
 (9.070 estrelas)
Métricas de merge de PR
 (Mesclagem média 2d 17h) (71 fundiu PRs em 30d)

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.

Guia do colaborador