springcloud zuul configurations are correct, but what is the reason prompt error code 500

After careful examination, the entire configuration mapping no problem, springboot-admin control center for all services all green status display normal

But that is the wrong prompt 500 to access the service through zuul

This situation is generally due to a request timeout

You can adjust the timeout request

zuul local service error prompt: com.netflix.zuul.exception.ZuulException: Forwarding error

Original configuration example:

hystrix:
  command:    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 12000ribbon:
  ReadTimeout: 6000
  ConnectTimeout: 6000zuul:
  host:
    socket-timeout-millis: 6000
    connect-timeout-millis: 6000from www.1b23.com

All change:

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 12000ribbon:
  ReadTimeout: 12000
  ConnectTimeout: 12000
  eureka:
     enabled: truezuul:
  host:
    socket-timeout-millis: 12000
    connect-timeout-millis: 12000
 from www.1b23.com

60,000 is the number of milliseconds have changed big


Guess you like

Origin blog.51cto.com/14622073/2476925