分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 教程案例

com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

发布时间:2023-09-06 02:28责任编辑:彭小芳关键词:暂无标签

  通过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

  

qq群:216868740

com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

原文地址:https://www.cnblogs.com/tangyin/p/10213488.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved