1 com.alibaba.nacos.api.exception.NacosException:failed to req API:/nacos/v1/ns/instance after all servers([xxx]) tried: ErrCode:403, ErrMsg:<html><body><h1>Whitelab
# 我的配置 spring.application.name=virtuous-base-service spring.profiles.active=dev spring.cloud.nacos.config.server-addr=127.0.0.1 spring.cloud.nacos.config.username=nacos spring.cloud.nacos.config.password=xxx spring.cloud.nacos.discovery.server-addr=127.0.0.1 spring.cloud.nacos.discovery.username=nacos spring.cloud.nacos.discovery.password=xxx
解决办法:
地址写错了,端口没写= = 127.0.0.1:8848 8848端口没写
2 NacosException: Client not connected,current status: STARTING
错误信息:
Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:STARTING at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:651) ~[nacos-client-2.1.0.jar:na] at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:631) ~[nacos-client-2.1.0.jar:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:278) ~[nacos-client-2.1.0.jar:na] ... 32 common frames omitted
这个问题真是折腾死我了,我的 nacos 是装的 2.3.0,我以为是版本太高,我又是换版本,又是换 maven 依赖的版本,还是报错,连不上,还又找别人的 demo ,发现就是连不上,苦恼一下午,今儿起来有看了看,调试了下:
唉,又一次被端口网络的问题折磨。。。。
标签:spring,xxx,nacos,Nacos,client,报错,servers,com,cloud From: https://www.cnblogs.com/kukuxjx/p/17902126.html