有没有大佬本地IDEA启动nacos后,遇到过同样的问题,本地IDEA源码启动后,服务注册的时候报错
```2024-02-02 12:15:47.024 ERROR 9900 [] [main] com.alibaba.nacos.common.remote.client Connection is unregistered, switch server, connectionId = 1706847342345_xxxx_57162, request = SubscribeServiceRequest
2024-02-02 12:15:47.024 INFO 9900 [] [com.alibaba.nacos.client.remote.worker] com.alibaba.nacos.common.remote.client [f2199a1e-6949-4aa8-961f-a54e9e8b29eb] Try to reconnect to a new server, server is not appointed, will choose a random server.
2024-02-02 12:15:47.129 ERROR 9900 [] [com.alibaba.nacos.client.naming.updater.0] com.alibaba.nacos.common.remote.client Send request fail, request = ServiceQueryRequest{headers={accessToken=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJuYWNvcyIsImV4cCI6MTcwNjg2NTM0Mn0.dWQQLfpJwfdd5JD-d8Dm14YtADuWOe8AE8AIGrurBdY, app=unknown}, requestId='null'}, retryTimes = 0, errorMessage = Client not connected, current status:UNHEALTHY
2024-02-02 12:15:47.129 ERROR 9900 [] [main] com.alibaba.nacos.common.remote.client Send request fail, request = SubscribeServiceRequest{headers={}, requestId='null'}, retryTimes = 0, errorMessage = Connection is unregistered.
2024-02-02 12:15:47.136 ERROR 9900 [] [main] com.alibaba.cloud.nacos.discovery.NacosWatch namingService subscribe failed, properties:NacosDiscoveryProperties{serverAddr='xxxx:8848', username='nacos', password='nacos', endpoint='', namespace='vecs-v2-dev-qjx', watchDelay=30000, logName='', service='xxxx', weight=1.0, clusterName='DEFAULT', group='DEFAULT_GROUP', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD, management.endpoints.web.base-path=/monitor, management.context-path=/vecs-monitor}, registerEnabled=true, ip='10.2.76.101', networkInterface='', port=-1, secure=false, accessKey='', secretKey='', heartBeatInterval=null, heartBeatTimeout=null, ipDeleteTimeout=null, instanceEnabled=true, ephemeral=true, failureToleranceEnabled=false}, ipDeleteTimeout=null, failFast=true}
com.alibaba.nacos.api.exception.NacosException: Request nacos server failed:
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:290)
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doSubscribe(NamingGrpcClientProxy.java:230)
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.subscribe(NamingGrpcClientProxy.java:215)
at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.subscribe(NamingClientProxyDelegate.java:147)
at com.alibaba.nacos.client.naming.NacosNamingService.subscribe(NacosNamingService.java:393)
at com.alibaba.cloud.nacos.discovery.NacosWatch.start(NacosWatch.java:132)
at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:178)
at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:54)
at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:356)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:155)
at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:123)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:935)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:745)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:420)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
at cn.enn.vecs.resource.VecsResourceApplication.main(VecsResourceApplication.java:15)
Caused by: com.alibaba.nacos.api.exception.NacosException: Connection is unregistered.
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:669)
at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:630)
at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:280)
... 20 common frames omitted
```
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。