-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I ran the example using Docker
The services registered correctly with Eureka and the Gateway was able to communicate with Eureka
However when trying to call the Gateway from the browser, I kept getting HTTP ERROR 502
When I drilled into the logs of the Gateway, I found the following Connection refused (servicec.openapi:9300)
Although I made sure that the "servicec.openapi" container is running under port 9300, I called it from the browser and it worked
After some debugging, I found that in other to get the gateway to communicate with the services; it had to call them using their container port, which means servicec.openapi:8080
That means that the services need to register themselves with Eureka using their container ports and not their exposed ports
Can you please confirm that or am i doing something wrong?