栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > .Net

Error during filtering com.netflix.zuul.exception.ZuulException: Filter threw Exceptions错误解决

.Net 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Error during filtering com.netflix.zuul.exception.ZuulException: Filter threw Exceptions错误解决

启动项目的微服务组件的时候,总是在微服务的网关那出现这个错误

Error during filtering com.netflix.zuul.exception.ZuulException: Filter threw Exception

查阅了网上资料:原因可能是有一些请求的请求时间太长,触发了熔断器导致。

解决方案:在yml配置文件上加上即可,如果还是不行,把熔断时间、连接超时时间、通信超时时间都改大即可。

ribbon:
  ConnectTimeot: 10000 # 连接超时时间(ms)
  ReadTimeot: 10000 # 通信超时时间(ms)
  OkToRertryOnAllOperations: ture # 是否对所有操作重试
  MaxAutoRetriesNextServer: 1 #同一个服务不同实例的重试次数
  MaxAutoRetries: 1 #同一实例的重试次数
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMillisecond: 10000 #熔断超时时长 10000ms
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/905594.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号