3 回答

TA貢獻1829條經(jīng)驗 獲得超9個贊
您正在與郵遞員或任何其他http測試人員一起在H2控制臺測試中超時,因為:使用Zuul...歇斯底里...您正在嘗試將完全相同的對象發(fā)送到 H2 數(shù)據(jù)庫。這可能是因為您的模型上也有驗證器。要解決:通過重新編輯,確保json,xml或任何對象相對唯一,然后嘗試再次發(fā)送請求。

TA貢獻1155條經(jīng)驗 獲得超0個贊
上述問題是由滯后超時引起的。上述問題可以通過禁用休眠超時或增加滯后超時來解決,如下所示:
# Disable Hystrix timeout globally (for all services)
hystrix.command.default.execution.timeout.enabled: false
#To disable timeout foror particular service,
hystrix.command.<serviceName>.execution.timeout.enabled: false
# Increase the Hystrix timeout to 60s (globally)
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
# Increase the Hystrix timeout to 60s (per service)
hystrix.command.<serviceName>.execution.isolation.thread.timeoutInMilliseconds: 60000
如果使用發(fā)現(xiàn)服務(wù)進行服務(wù)查找和路由,則上述解決方案將起作用。
添加回答
舉報