Skip to content

Connection refused  #2

@ZouZou

Description

@ZouZou

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions