当前位置:网站首页>【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
【Zuul】com.netflix.zuul.exception.ZuulException: Hystrix Readed time out
2022-07-02 15:50:00 【后端研发Marion】
通过API网关路由来访问用户服务,zuul默认路由规则 :http://zuul的Host地址:zuul端口/要调用的服务名/服务方法地址
浏览器中打开http://127.0.0.1:8000/wallet/system/hello/1
报错:
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Aug 07 17:49:01 CST 2018
There was an unexpected error (type=Gateway Timeout, status=504).
com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

这个错误是应为zuul的默认超时时间比较小,我们配置下zuul的超时时间,因zuul启用了ribbon的负载均衡,还需要设置ribbon的超时时间,注意ribbon的超时时间要小于zuul超时时间 。
zuul:
host:
connect-timeout-millis: 15000 #HTTP连接超时要比Hystrix的大
socket-timeout-millis: 60000 #socket超时
ribbon:
ReadTimeout: 10000
ConnectTimeout: 10000边栏推荐
猜你喜欢

【目标跟踪】|SiamFC

Rk1126 platform project summary

Platform management background and merchant menu resource management: merchant role management design

Virtual lab basic experiment tutorial -7 Polarization (1)

Platform management background and business menu resource management: business permissions and menu resource management design

阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限

Modbus协议通信异常
![[how is the network connected] Chapter 4 explores access networks and network operators](/img/50/d16f4dca571a5a5f9b20fada289d45.png)
[how is the network connected] Chapter 4 explores access networks and network operators

从收集到输出:盘点那些强大的知识管理工具——优秀笔记软件盘点(四)

EdgeNeXt打出了一套混合拳:集CNN与Transformer于一体的轻量级架构
随机推荐
em120.gige.h
POJ - 1458 Common Subsequence(最长公共子序列)
POJ - 1458 common subsequence (longest common subsequence)
From collection to output: inventory those powerful knowledge management tools - inventory of excellent note taking software (4)
13、Darknet YOLO3
Vscode knowledge points - Common Errors
【目标跟踪】|数据集汇总
每日一题——小乐乐改数字
第十五章 字符串本地化和消息字典(一)
Virtual lab basic experiment tutorial -7 Polarization (1)
Microservice architecture practice: using Jenkins to realize automatic construction
Helm kubernetes package management tool
阿里云子账户 - 权限策略 - 授权给某个账户某个 OSS Bucket 的完全控制权限
Chrome browser quick access stackoverflow
vector的底层模拟实现
easyAI笔记——机器学习
关于我
如何给 SAP Spartacus Storefront 创建新的页面
AtCoder Beginner Contest 237 VP补题
chrome浏览器快速访问stackoverflow