exception.ZuulException: Forwarding error

com.netflix.client.ClientException: Load balancer does not have available server for client

刚开始用Api gateway   zuul组建,错误如上,

网上查了资料,主要错误原因如下:

1、缺 eureka 依赖,因为@EnableZuulProxy 是一个组合注解

springcloud zuul Forwarding error 错误 Load balancer does not have available server for client 原因

2、第二个原因也是我遇到的,同时到访问服务中配置了spring.application.name 和 eureka.instance.appname ,

注册到eureka的application name 为 eureka.instance.appname。

我再访问的时候直接复制的eureka服务中的application,然后就报以上错误。

最后把eureka.instance.appname的配置去掉后,访问正常。


具体原因不清楚,哪路大神如果清楚的话欢迎骚扰,谢谢!!!

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2022-01-29
  • 2021-08-20
  • 2021-06-06
  • 2022-12-23
  • 2021-09-01
  • 2021-04-05
相关资源
相似解决方案