OpenFeign/feign
ErrorDecoder not invoked when Apache Http client throws checked exception
已關閉
#1,487 建立於 2021年8月17日
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.