zuul报错前端返回500问题 com.netflix.zuul.exception.ZuulException: Forwarding error

postman发送请求,zuul服务本地报错提示:com.netflix.zuul.exception.ZuulException: Forwarding error

百度了一下应该是这里的错误:

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 12000
ribbon:
  ReadTimeout: 6000
  ConnectTimeout: 6000

zuul:
  host:
    socket-timeout-millis: 6000
    connect-timeout-millis: 6000

 

增加了

ribbon:
  ReadTimeout: 6000
  ConnectTimeout: 6000
  eureka:
     enabled: true

还是不行

后来改成

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 12000
ribbon:
  ReadTimeout: 12000
  ConnectTimeout: 12000
  eureka:
     enabled: true
zuul:
  host:
    socket-timeout-millis: 12000
    connect-timeout-millis: 12000

本地改成这样就可以了。不知道是不是timeout的时间太短了的原因

你可能感兴趣的:(zuul报错前端返回500问题 com.netflix.zuul.exception.ZuulException: Forwarding error)