OpenFeign/feign

ErrorDecoder not invoked when Apache Http client throws checked exception

Open

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

在 GitHub 查看
 (8 评论) (0 反应) (1 负责人)Java (9,070 star) (1,911 fork)batch import
buggood first issuehelp wanted

描述

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.

贡献者指南