Feign reports an error: com.netflix.client.clientexception: load balancer does not have available server for client: XXX
The first step is to check whether the name of the service called by feign is correct. Of course, this is a common way. Only when you find that the name is right can you search on the Internet. My problem is that the original call was good. As a result, the versions of springcloud and spring boot were changed to a lower level, but they couldn’t be adjusted. The service name was not changed. So I found that there was a horizontal bar on my service name. Once the horizontal bar was removed, it passed and I was drunk. So I specially wrote an example. It was really the reason for the horizontal bar
com.netflix.client.ClientException: Load balancer does not have available server for client: server-1
Summary: do not add any symbols to the service name. The lower version is incompatible, such as 2.2.6.release hoxton.sr3 I use, and the higher version is OK
Read More:
- Microservice call exceptions: error feign.RetryableException: Read timed out executing POST http://xxx…….
- feign.codec.EncodeException: Type definition error: [simple type, class java.util.Collections$3]
- Springcloud Project Error: web.client.HttpServerErrorException$InternalServerError: 500 Internal Server Error
- [Solved] nacos Error: Client not connected,current status:STARTING,StatusRuntimeException
- DevTools failed to load SourceMap Could not load content [Solved]
- [Solved] Failed to load resource: the server responded with a status of 404 ()
- Client Error: Could not get a resource from the pool [How to Solve]
- [Solved] IDEA2021.3 Error: Failed to write core dump. Minidumps are not enabled by default on client versions of
- Feign calls cannot use “_” to report errors [How to Solve]
- How to Solve Error-SpringCloud-Feign and Sentinel integrate error
- Feign call Error: duplicate name [How to Solve]
- [Solved] Spring integrates canal to call feign error: pool-1-thread-1
- [Solved] Feign Call Port Error: HttpMessageNotReadableException:JSON parse error:Illegal character ((CTRL-CHAR, code 31)
- [Solved] Mapped Statements collection does not contain value for xxx
- Frequent log swiping after Nacos client starts [How to Solve]
- Failed to restart redis-server.service Unit not found [How to Solve]
- [Solved] Spring Cloud Use Ribbon Error: No instances available for XXX
- [Solved] seata Error: io.seata.rm.datasource.exec.LockConflictException: get global lock fail, xid:xxx, lockKeys:xxx
- [Solved] BindingException: Type interface XXX is not known to the MapperRegistry
- JAVA Error Illegal access: this web application instance has been stopped already. Could not load net.sf