Closed HaojunRen closed 3 years ago
Maybe I know the root cause, in H version, i still use Ribbon, but in 2020 with webflux spring cloud loadbalancer, it does not support Feign invoke in Spring Cloud Gateway filter. Am I right?
Refer to the issue https://github.com/spring-cloud/spring-cloud-gateway/issues/1090
I have the same problem with you. How did you solve it, just down the version ?
I have the same problem too. How did you solve it, just down the version ?
I have the same problem too.
I have the same problem too.
use webclient instead of Feign , Feign is a sync framework, but gateway is async .
I have the same problem too.
use webclient instead of Feign , Feign is a sync framework, but gateway is async .
Thanks,use webclient instead of Feign , It's OK
I have the same problem, In spring cloud gateway, if service discovery is implemented based on "spring-cloud-loadbalancer", an error will be reported: "java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking, which is not supported in thread reactor-http-nio-", if I have to use spring cloud loadbalancer for service discovery, how can I solve this problem?
Maybe I know the root cause, in H version, i still use Ribbon, but in 2020 with webflux spring cloud loadbalancer, it does not support Feign invoke in Spring Cloud Gateway filter. Am I right?
Refer to the issue
1090
right! so. How to implements service discovery?
Maybe I know the root cause, in H version, i still use Ribbon, but in 2020 with webflux spring cloud loadbalancer, it does not support Feign invoke in Spring Cloud Gateway filter. Am I right? Refer to the issue
1090
right! so. How to implements service discovery?
@Autowired private WebClient.Builder webClientBuilder;
Mono
Maybe I know the root cause, in H version, i still use Ribbon, but in 2020 with webflux spring cloud loadbalancer, it does not support Feign invoke in Spring Cloud Gateway filter. Am I right? Refer to the issue
1090
right! so. How to implements service discovery?
@Autowired private WebClient.Builder webClientBuilder;
Mono monoInfo = webClientBuilder.build(). get().uri("http://your service/api/xxxx").header(arg1, arg2).retrieve().bodyToMono(XXXX.class);
Thanks!
I have the same problem with you. haven any details example ? i need call other service to auth vlidate in gateway filter
Following code ran in Spring Cloud H version correctly, buT failed in 2020 version. Please have a look
Feign class
Gateway Filter class
Exception