开发者社区 > 云原生 > 微服务 > 正文

Nacos java调用报错?

Nacos java调用报错?com.alibaba.nacos.api.exception.NacosException: failed to req API:192.168.85.102:8848/nacos/v1/ns/instance/beat. code:403 msg:

Whitelabel Error Page

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

Mon Jul 15 18:15:19 CST 2024
There was an unexpected error (type=Forbidden, status=403).
unknown user!

at com.alibaba.nacos.client.naming.net.NamingProxy.callServer(NamingProxy.java:427)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:454)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:389)
at com.alibaba.nacos.client.naming.net.NamingProxy.sendBeat(NamingProxy.java:312)
at com.alibaba.nacos.client.naming.beat.BeatReactor$BeatTask.run(BeatReactor.java:98)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
2024-07-15 18:15:19.867 [com.alibaba.nacos.naming.beat.sender] ERROR com.alibaba.nacos.client.naming - [CLIENT-BEAT] failed to send beat: {"cluster":"DEFAULT","ip":"10.244.71.59","metadata":{"preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":8081,"scheduled":false,"serviceName":"dev@@risk-card-api","stopped":false,"weight":1.0}
java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance/beat after all servers([192.168.85.102:8848]) tried: failed to req API:192.168.85.102:8848/nacos/v1/ns/instance/beat. code:403 msg:

Whitelabel Error Page

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

Mon Jul 15 18:15:19 CST 2024
There was an unexpected error (type=Forbidden, status=403).
unknown user!

at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:467)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:389)
at com.alibaba.nacos.client.naming.net.NamingProxy.sendBeat(NamingProxy.java:312)
at com.alibaba.nacos.client.naming.beat.BeatReactor$BeatTask.run(BeatReactor.java:98)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)

展开
收起
真的很搞笑 2024-07-24 23:29:07 36 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:

为微服务建设降本增效,为微服务落地保驾护航。

相关电子书

更多
如何通过 Serverless 提高 Java 微服务治理效 立即下载
workshop专场-微服务专场-开发者动手实践营-微服务-使用Nacos进行服务的动态发现和流量调度 立即下载
Nacos 启航,发布第一个版本, 云原生时代助力用户微服务平台建设 立即下载