GateWay 整合 Admin 踩坑 出现错误 admin日志出现 Connection prematurely closed BEFORE

如果帮您解决了问题,麻烦给个好评 卑微.png
主要看到报错信息是:reactor.netty.http.client.PrematureCloseException: Connection prematurely

closed BEFORE response




The connection observed an error

reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response

reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response
  Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
  |_ checkpoint ⇢ Request to GET health [DefaultWebClient]

如果Gateway配置SSL Gateway配置文件加上
management:
server:
port: 8080
ssl:
enabled: false
就可以了,如果没有加SSL 就是正常配置就可以注册成功
普通的http请求到gateway就会被拦截 https的域名没有注册到eureka Admin 从 eureka中获取到是ip,无法获取域名地址无法监测到健康信息 就会出现这个错误

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 8
    评论
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值