当前位置:网站首页>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

最后测试成功!!
边栏推荐
- 基于DeepFace模型设计的人脸识别软件
- Importerror: libgl.so.1: cannot open shared object file: no such file or directory
- [the second revolution of report tools] optimize report structure and improve report operation performance based on SPL language
- Fail fast and fail safe
- Fabric. JS lock the background image, not affected by zooming and dragging
- How to make a simple Snake game with pyGame
- Accuracy of alphafold and NMR determination of protein structure in solution
- What should be done to improve the service level of the park and optimize the business environment
- 创建 Visual Studio 离线安装包并安装
- Mysql database implementation setting field length
猜你喜欢

消除业务代码中if....else的五种方式

ADB is not an internal or external command, nor is it a runnable program or batch file

Full link tracking & performance monitoring tool skywalking practice

Numpy learning notes

C#_ Serial port communication project

adb不是内部或外部命令,也不是可运行的程序或批处理文件

成立1年便成独角兽,腾讯滴滴做「靠山」,今年新晋的独角兽不简单

PyTorch基础(一)-- Anaconda 和 PyTorch安装

提升园区服务水平,优化营商环境该从哪些方面入手

新思科技在《 2022 年 Gartner 应用安全测试关键能力报告》中表现优异 在五个常见用例中荣获最高分
随机推荐
智慧景區視頻監控 5G智慧燈杆網關組網綜合杆
解决idea打开某个项目卡住的问题
仅需三步学会使用低代码ThingJS与森数据DIX数据对接
Accuracy of alphafold and NMR determination of protein structure in solution
Daily question -1287 Elements that appear more than 25% in an ordered array
See how advanced technology changes human life
Full link tracking & performance monitoring tool skywalking practice
C# 根据EXCEL自动生成oracle建表语句
防洪排涝监控 防洪排涝自动监测遥测终端
For more than 20 years, there are only Durex, Okamoto and jasbon in the condom market
SOA architecture / test phase interface description language transformation scheme
新思科技在《 2022 年 Gartner 应用安全测试关键能力报告》中表现优异 在五个常见用例中荣获最高分
[the second revolution of report tools] optimize report structure and improve report operation performance based on SPL language
Web3 is the most complete money making secret script. Just read this one
flex布局语法
vscode常用快捷键
Fabric. JS activation input box
Fabric.js 元素被选中时保持原有层级
期货账户资金安全吗?
Online communication skill network: a sparse model for solving multi task and multi-modal problems (Qingyuan talk, issue 19, tangduyu)