如果帮您解决了问题,麻烦给个好评 卑微.png
主要看到报错信息是:: 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,无法获取域名地址无法监测到健康信息 就会出现这个错误