-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Failed to invoke Feign and RestTemplate in Spring Cloud 2020's Gateway #2126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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 |
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 ? |
See |
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? |
right! so. How to implements service discovery? |
@Autowired Mono monoInfo = webClientBuilder.build(). |
Thanks! |
I have the same problem with you. haven any details example ? |
Following code ran in Spring Cloud H version correctly, buT failed in 2020 version. Please have a look
Feign class
Gateway Filter class
Exception
The text was updated successfully, but these errors were encountered: