I'm fairly new to Microservices world and trying to build a project while learning new concepts. I've been struck on this issue for quite a long time and saw that it might be a possible duplicate but I've tried all the solutions from another posts. Basically I have four applications deployed to Heroku:
- Config-Server
- Eureka-Server
- Front-End-Service
- User-Service
I was trying to replicate Facebook application hence the prefix 'friendsbook' is attached to each microservice name. The UI part of application will only hit API endpoints exposed by Front-End service - It's sort of like a Zuul Service. Anyhow,
2, #3 and #4 are config clients of #1.
3 and #4 are eureka clients of #2.
3 and #4 successfully registers themselves to Eureka Server as seen in below image
https://ibb.co/9TBnS2N
The User-Service is protected by basic authentication. I'm using Feign Client to call user-service from front-end service. Everything works fine when I run the thing locally but in Heroku only I get this issue. I'm able to access the User service from postman with basic auth credentials. I've tried restTemplate as well but it throws the same error.
More details can be found at: https://stackoverflow.com/questions/65383492/load-balancer-does-not-have-available-server-for-client-spring-eureka-feig as here I'm unable to write all the log files and code.
Comment From: spencergibb
Closing in favor of stack overflow. Please don't cross post.
Comment From: Vaibhav5757
Apologies, Raising this as a separate issue with all the details
Comment From: spencergibb
No need to raise another issue here. Stack overflow is the right place for the question.