October 22, 2024
Chicago 12, Melborne City, USA
java

Eureka Service Discovery UnknownHostException


I trying Eureka Service Discovery for the first time and this is the problem I am facing.

java.net.UnknownHostException: banking-portal
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567) ~[na:na]
    at java.base/java.net.Socket.connect(Socket.java:751) ~[na:na]
    at java.base/java.net.Socket.connect(Socket.java:686) ~[na:an]

My Eureka server is running and both of my applications are registered

enter image description here

But, while trying to hit the URL
"http://banking-portal/accounts/getById/{accountId}";
I am getting the above-mentioned error.

Please let me know what I am missing.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video