錯誤: 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