在nacos服务间调用时经常会出现
Caused by: feign.FeignException$BadGateway: [502 Bad Gateway]
Comment From: OlgaMaciaszek
Hello, @MdcGIt. This is an English language repo - please translate your comment to English if you would want us to take a look at it. Also, please provide a minimal, complete, verifiable example that reproduces the issue.
Comment From: spring-cloud-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-cloud-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Comment From: 721806280
你好,@MdcGIt。 同样的问题,请问您这边解决了吗?
Comment From: JenSuper
你好,@MdcGIt 出现问题的问题,请问您是这样解决的吗?
一般502都是服务出现了问题,首先去排查一下注册中心的服务是否正常,节点之前是否正常通信
Comment From: en-hui
if (!this.name.startsWith("http")) {
this.url = "http://" + this.name;
} else {
this.url = this.name;
}
看到FeignClientFactoryBean类的getTarget()方法中,url取和name一样的值,我期望的是使用feign调用时,会讲服务名称通过注册中心解析为ip来访问,而不是通过配置host文件来映射服务名称和ip,请问有什么配置能达到我的期望吗
Comment From: OlgaMaciaszek
Hello, @en-hui, this repo is maintained in English. If you would like us to take a look at it, please provide information in English.
Comment From: Gretycos
你好,@MdcGIt 出现问题的问题,请问您是这样解决的吗?
一般502都是服务出现了问题,首先去排查一下注册中心的服务是否正常,节点之前是否正常通信
注册中心显示节点都健康,但是不知道为什么feign调用的时候就502,感觉是有一方被断开了连接但是另一方还连着,无解