客户端2.0.3版本连接报Client not connected,current status:STARTING错误的解决方案 · Issue #6820 · alibaba/nacos · GitHub 您所在的位置:网站首页 unhealthy翻译 客户端2.0.3版本连接报Client not connected,current status:STARTING错误的解决方案 · Issue #6820 · alibaba/nacos · GitHub

客户端2.0.3版本连接报Client not connected,current status:STARTING错误的解决方案 · Issue #6820 · alibaba/nacos · GitHub

2023-08-14 07:01| 来源: 网络整理| 查看: 265

Describe the bug A clear and concise description of what the bug is.

报2.0.3版本(nacos server和client的版本相同)遇到的一个问题,使用: ConfigFactory.createConfigService(properties); 创建连接不成功,拉取配置时会报下面错误: ErrCode:-401, ErrMsg:Client not connected,current status:STARTING 跟踪代码,发现ServerListManager.start()会判断 if (isStarted || isFixed) {   return; } 由于在构造函数ServerListManager(Properties)中会将isFixed的值设置为true,导致start()方法不会继续往下执行, 尝试解决: 下载最新的源码,修改ServerListener.start()的判断逻辑去掉去isFixed的判断: if (isStarted) {   return; } 并重新编码api、common、client模块2.1.0-SNAPSHOT,然后在pom中重新依赖这些模块,再次启动不再报上面的401错误.

Expected behavior A clear and concise description of what you expected to happen.

Acutally behavior A clear and concise description of what you actually to happen.

How to Reproduce Steps to reproduce the behavior:

Go to '...' Click on '....' Scroll down to '....' See error

Desktop (please complete the following information):

OS: [e.g. Centos] Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1] Module [e.g. naming/config] SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context Add any other context about the problem here.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有