nacos icon indicating copy to clipboard operation
nacos copied to clipboard

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

Open misakacoder opened this issue 1 year ago • 1 comments

分支: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

misakacoder avatar Jun 20 '24 09:06 misakacoder

Yes, it need be enhanced, but it depend issue https://github.com/alibaba/nacos/issues/12189.

Please wating https://github.com/alibaba/nacos/issues/12189 finished and use unified serverlist manager to do.

KomachiSion avatar Jun 24 '24 01:06 KomachiSion

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

misakacoder avatar Dec 04 '24 10:12 misakacoder