Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端连接Nacos服务器报错 #338

Open
Zhao-Michael opened this issue Dec 3, 2024 · 1 comment
Open

客户端连接Nacos服务器报错 #338

Zhao-Michael opened this issue Dec 3, 2024 · 1 comment

Comments

@Zhao-Michael
Copy link

Describe what happened (or what feature you want)

客户端启动报错

Describe what you expected to happen

启动不报错

How to reproduce it (as minimally and precisely as possible)

Related code

fail: Nacos.V2.Config.NacosConfigService[0]
[NACOS ConnectException] currentServerAddr: http://xxxxxxxxxxxxxx:8848/, httpCode: BadGateway
fail: Nacos.V2.Config.NacosConfigService[0]
[NACOS ConnectException] currentServerAddr: http://xxxxxxxxxxxxxx:8848/, httpCode: BadGateway
fail: Nacos.V2.Config.NacosConfigService[0]
[NACOS ConnectException] currentServerAddr: http://xxxxxxxxxxxxxx:8848/, httpCode: BadGateway
fail: Nacos.V2.Config.NacosConfigService[0]
[NACOS ConnectException] currentServerAddr: http://xxxxxxxxxxxxxx:8848/, httpCode: BadGateway
fail: Nacos.V2.Config.NacosConfigService[0]
[fixed-xxxxxxxxxxxxxx_8848-] [check-update] get changed dataId exception
System.Exception: [NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached
at Nacos.V2.Config.Http.ServerHttpAgent.HttpRequest(String path, Dictionary2 headers, Dictionary2 paramValues, String encoding, Int64 readTimeoutMs, HttpMethod method)
at Nacos.V2.Config.Http.ServerHttpAgent.HttpPost(String path, Dictionary2 headers, Dictionary2 paramValues, String encoding, Int64 readTimeoutMs)
at Nacos.V2.Config.Impl.ConfigHttpTransportClient.CheckUpdateConfigStr(String probeUpdateString, Boolean isInitializingCacheList)
fail: Nacos.V2.Config.NacosConfigService[0]
longPolling error
System.Exception: [NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached
at Nacos.V2.Config.Http.ServerHttpAgent.HttpRequest(String path, Dictionary2 headers, Dictionary2 paramValues, String encoding, Int64 readTimeoutMs, HttpMethod method)
at Nacos.V2.Config.Http.ServerHttpAgent.HttpPost(String path, Dictionary2 headers, Dictionary2 paramValues, String encoding, Int64 readTimeoutMs)
at Nacos.V2.Config.Impl.ConfigHttpTransportClient.CheckUpdateConfigStr(String probeUpdateString, Boolean isInitializingCacheList)
at Nacos.V2.Config.Impl.ConfigHttpTransportClient.CheckUpdateDataIds(List1 cacheDatas, List1 inInitializingCacheList)
at Nacos.V2.Config.Impl.ConfigHttpTransportClient.b__33_0(Object x)

Tell us your environment

Anything else we need to know?

可能是服务器或者DNS不太稳定,workaround 也许可以添加重试次数,或者让重试次数可配置?

@catcherwong
Copy link
Collaborator

这个很明显是服务端有问题了,重试3次已经很多了,如果想要配置,倒是可以考虑加。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants