当前位置:网站首页>com.netflix.client.ClientException: Load balancer does not have available server for client: userser
com.netflix.client.ClientException: Load balancer does not have available server for client: userser
2022-06-10 16:36:00 【itmkyuan】
错误消息:
com.netflix.client.ClientException: Load balancer does not have available server for client: userservice
at com.netflix.loadbalancer.LoadBalancerContext.getServerFromLoadBalancer(LoadBalancerContext.java:483) ~[ribbon-loadbalancer-2.3.0.jar:2.3.0]
at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:184) ~[ribbon-loadbalancer-2.3.0.jar:2.3.0]
at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:180) ~[ribbon-loadbalancer-2.3.0.jar:2.3.0]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:94) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:42) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Observable.unsafeSubscribe(Observable.java:10327) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber$1.call(OperatorRetryWithPredicate.java:127) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.enqueue(TrampolineScheduler.java:73) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.schedule(TrampolineScheduler.java:52) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:79) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:45) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$WeakSingleProducer.request(ScalarSynchronousObservable.java:276) ~[rxjava-1.3.8.jar:1.3.8]
at rx.Subscriber.setProducer(Subscriber.java:209) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:138) ~[rxjava-1.3.8.jar:1.3.8]
at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:
错误分析
服务实例没有被加载到,网上出现这种错误好像还是挺多的,在此写下本人出现该错误的地方及解决方式,也可能是其他错误地方,希望能帮到遇到同样错误的朋友。
我这里两个环境出现了隔离,但是我记得自己已经配置了namespce都配置在了dev环境下
观察配置文件如下(这里用bootsrap.yml作为userservice环境共享配置文件)
解决问题
上图出现了问题,namespce注册到Nacos前缀并不是config,而是discovery
粗心可能就这样了
正确配置如下 :
当然order-service也要在相同的namespce下,也可以配置文件都不配置namespace,在nacos中直接默认在public

最后测试成功!!
边栏推荐
- C#_串口通信项目
- Web3 is the most complete money making secret script. Just read this one
- Make good use of the industrial chain to attract investment, create industrial cluster effect and realize the coordinated development of industries
- AIChE | 集成数学规划方法和深度学习模型的从头药物设计框架
- VBA将字符串分割、存入数组、写入文件并保存
- Fabric.js 缩放画布
- 解决idea打开某个项目卡住的问题
- 大山深处的孩子,正在看见更远的星空
- Web3最全搞钱秘籍,看这一篇就够了
- Fabric. JS lock the background image, not affected by zooming and dragging
猜你喜欢

Brands are difficult to establish, IPO is difficult, and Chinese tea enterprises are trapped in "tradition"?

C# 根据EXCEL自动生成oracle建表语句

Xinsi technology performed well in the Gartner application security test key capability report 2022 and won the highest score among the five common use cases

Docker安装Redis镜像详细步骤(简单易懂,适合新手快速上手)

Web3最全搞钱秘籍,看这一篇就够了

2022年上海市安全员C证操作证考试题库模拟考试平台操作

2022年茶艺师(中级)操作证考试题库及模拟考试

vscode常用插件与配置

B站不想成为“良心版爱优腾”

Intelligent scenic spot video monitoring 5g intelligent light pole gateway networking integrated pole
随机推荐
重庆第一个科创板IPO,来了
KDD 2021 | MoCL:利用多层次领域知识的分子图对比学习
Chongqing's first sci tech Innovation Board IPO is coming
Xinsi technology helps Israel visuality systems promote the "left shift" of security
Importerror: libgl.so.1: cannot open shared object file: no such file or directory
Cap version 6.1 Release Notice
HTML+PHP+Mysql登录注册页面
当v-if和v-for需要同时使用的时候
MFC basic knowledge and course design ideas
AIChE | ab initio drug design framework integrating mathematical programming method and deep learning model
Example code of PHP for uploading multiple pictures
华为matepad能成为你的笔记本电脑副屏?
期货账户资金安全吗?
Xinsi technology performed well in the Gartner application security test key capability report 2022 and won the highest score among the five common use cases
谁在使用我的服务器?在干什么?什么时候?
Nat. Rev. Drug Discov. | AI在小分子药物发现中的应用:一个即将到来的浪潮?
仅需三步学会使用低代码ThingJS与森数据DIX数据对接
Numpy learning notes
Fabric.js 元素被选中时保持原有层级
VBA判断文件是否存在及问文件备份思路