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

client使用endpoint方式连接nacos,然后把地址服务器上的nacos ip切换至其他ip后,client程序过段时间会出现403 #12257

Closed
misakacoder opened this issue Jun 20, 2024 · 2 comments · Fixed by #12920
Labels

Comments

@misakacoder
Copy link
Contributor

分支:develop

原因:修改地址服务器上的nacos ip后,config和naming的ServerListManager刷新了serverList,但是鉴权插件没有刷新serverList。当鉴权插件持有的token过期后,一直向旧的nacos server请求token,旧的nacos server已经下线了,所以刷新不了token。

naming的rpc client持有的serverList:

image

config的rpc client持有的serverList:

image

auth plugin持有的serverList:

image

异常:
image
image

@KomachiSion
Copy link
Collaborator

Yes, it need be enhanced, but it depend issue #12189.

Please wating #12189 finished and use unified serverlist manager to do.

@misakacoder
Copy link
Contributor Author

@KomachiSion 这个bug我重新提交了一个pr,你看看有没有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment