码上敲享录 > springcloud开发经验分享 > com.netflix.zuul.exception.ZuulException: Forwarding error已解决

com.netflix.zuul.exception.ZuulException: Forwarding error已解决

上一章章节目录下一章 2018-09-20已有3865人阅读 评论(0)

我使用zuul向服务接口发起请求时,耗时有点长,就出现以下错误:

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

Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: transaction timed-out and no fallback available.

Caused by: java.util.concurrent.TimeoutException: null


解决方法:

在application.xml中添加即可成功解决:

ribbon:
 ReadTimeout: 60000
   ConnectTimeout: 60000
   eureka:
   enabled: true
hystrix:
 command:
   default:
     execution:
       isolation:
         thread:
           timeoutInMilliseconds: 60000

本文链接:http://www.yayihouse.com/yayishuwu/chapter/1599

0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交