hdimitrieski / e-shop

Sample Spring Cloud microservices e-shop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API-GATEWAY status is always DOWN.

blling opened this issue · comments

image

./script/startup.sh and docker/docker-compose.infra.yml startup gateway, the status is always DOWN, Maybe something wrong?

There is a custom health check implemented in the API Gateway: com.eshop.gateway.config.HealthCheckConfig. The status of the API Gateway is UP only when the statuses of Catalog, Order, and Basket are UP.

image

All up, but the API-GATEWAY is still DOWN. Maybe the /actuator/health of API-GATEWAY should skip auth?

image

Probably you are right, but I'll have to check this later, and I'll get back to you. :)

The problem was that the web client couldn't resolve the URLs of the microservices relevant to the health check. Adding the @LoadBalanced annotation fixed the problem.