OpenFeign/feign

ErrorDecoder not invoked when Apache Http client throws checked exception

已关闭

#1,487 创建于 2021年8月17日

 (8 条评论) (0 个反应) (1 位负责人)Java (1,911 个派生)batch import
buggood first issuehelp wanted

仓库指标

星标
 (9,070 个星标)
PR 合并指标
 (平均合并 2天 17小时) (30 天内合并 71 个 PR)

描述

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.

贡献者指南