后台服务报错

com.netflix.zuul.exception.ZuulException: Forwarding error

还有可能是数据库的问题,rds 数据库的问题

我首先怀疑是断路器问题,加了配置

 
  1. zuul:

  2. host:

  3. socket-timeout-millis: 60000

  4. connect-timeout-millis: 60000

  5.  
  6. hystrix:

  7. command:

  8. default:

    扫描二维码关注公众号,回复: 2926924 查看本文章
  9. execution:

  10. isolation:

  11. thread:

  12. timeoutInMilliseconds: 60000


启动报错依旧,最后我手动调用接口,返回等待时间很长,怀疑是ribbon问题,加入以下配置

 
  1. ribbon:

  2. ReadTimeout: 60000

  3. ConnectTimeout: 60000


问题解决!

Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out

猜你喜欢

转载自blog.csdn.net/qq_33382118/article/details/81569063