Rajeev Akotkar
Rajeev Akotkar

Reputation: 1397

Eureka not discovering service by name

I'm running simple eureka service discovery example as given in the link below :

https://www.logicbig.com/tutorials/spring-framework/spring-cloud/rest-template-load-balancer.html

I observed that while I am running this example on my home wifi/personal laptop this runs fine whereas while it runs on my office workstation on the corporate network, the resttemplate in unable to resolve the services by their name. (get 407 proxy unauthorized)

I can see that both the services are getting successfully registered on Eureka.

What might be stopping the Eureka server to work correctly on the corporate network?

P.S.: By following the answer and making the resttemplate and proxy aware results in 503 services unavailable.

Upvotes: 0

Views: 430

Answers (1)

Dina Bogdan
Dina Bogdan

Reputation: 4738

You should configure your rest template to be proxy aware. You can find how to do this here

Upvotes: 1

Related Questions