alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.18k stars 12.83k forks source link

something about token expired #6995

Closed zjg1993 closed 6 months ago

zjg1993 commented 3 years ago

my service is running! but once an error occurred! Then all down,i dont know why image

realJackSun commented 3 years ago

Which version of nacos?(Both client and server)

zjg1993 commented 3 years ago

both 1.4.1 @realJackSun

zjg1993 commented 3 years ago

who know it ?

samuel072 commented 2 years ago

Me too. Who solved it

ConnorLH commented 2 years ago

same problem, server:1.4.0, client:1.3.3

com.alibaba.cloud.nacos.discovery.NacosDiscoveryClient:70 : get service name from nacos server fail,
ErrCode:500, ErrMsg:failed to req API:/nacos/v1/ns/service/list after all servers([172.16.1.15:8848, 172.16.1.16:8848, 172.16.1.7:8848]) tried: ErrCode:403, ErrMsg:<html><body><h1>Whitelabel Error Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>Fri Jan 21 09:31:50 CST 2022</div><div>There was an unexpected error (type=Forbidden, status=403).</div><div>token expired!</div></body></html>
    at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:552)
    at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:491)
    at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:486)
    at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:474)
    at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:492)
    at com.alibaba.nacos.client.naming.NacosNamingService.getServicesOfServer(NacosNamingService.java:480)
    at com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery.getServices(NacosServiceDiscovery.java:69)
    at com.alibaba.cloud.nacos.discovery.NacosDiscoveryClient.getServices(NacosDiscoveryClient.java:67)
    at org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient.getServices(CompositeDiscoveryClient.java:67)
    at org.springframework.cloud.client.discovery.health.DiscoveryClientHealthIndicator.health(DiscoveryClientHealthIndicator.java:69)
qngl commented 2 years ago

Nacos v2.0.4

` 2022-08-22 02:02:10.409 ERROR 21540 --- [com.alibaba.nacos.naming.beat.sender] com.alibaba.nacos.client.naming : [NA] failed to request

com.alibaba.nacos.api.exception.NacosException:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Aug 22 07:02:12 CST 2022
There was an unexpected error (type=Forbidden, status=403).
token expired!
at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:615) at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:526) at com.alibaba.nacos.client.naming.net.NamingProxy.reqApi(NamingProxy.java:498) at com.alibaba.nacos.client.naming.net.NamingProxy.sendBeat(NamingProxy.java:433) at com.alibaba.nacos.client.naming.beat.BeatReactor$BeatTask.run(BeatReactor.java:167) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748)

`

KomachiSion commented 6 months ago

newest version should have solved this problem.