spring-cloud / spring-cloud/spring-cloud-openfeign
org.springframework.cloud.openfeign.loadbalancer.RetryableFeignBlockingLoadBalancerClient NeverRetryPolicy It will cause feign.okhttp OkHttpClient NullPointerException
Open
@OlgaMaciaszek is already working on this.
Since May 5, 2025.
in progress
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 838
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 13
Description
Describe the bug
When spring.cloud.loadbalancer.retry.enabled=false, org.springframework.cloud.openfeign.loadbalancer. RetryableFeignBlockingLoadBalancerClient NeverRetryPolicy will cause feign.okhttp OkHttpClient NullPointerException.
SpringBoot: 2.7.18
SpringCloud: 2021.0.9
spring-cloud-openfeign-core: 3.1.9
feign-okhttp: 11.10
JDK: temurin 17.0.11
Sample
When spring.cloud.loadbalancer.retry.enabled=false, feignRequest is null.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.