`

com.netflix.hystrix.exception.HystrixRuntimeException: service-feign timed-out a

阅读更多

错误: com.netflix.hystrix.exception.HystrixRuntimeException: service-feign timed-out and no fallback available.

 

原因:
Hystrix缺省超时判断为1秒钟,由于网络问题,有些请求超过1秒钟之后才接收到。
解决:
配置修改请求超时时长(application.yml):

 

hystrix:  
  command:  
    default:  
      execution:  
        isolation:  
          thread:  
            timeoutInMilliseconds: 30000 #缺省为1000  

 application.properties 文件

 

 

hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=30000

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics