Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consul discovery function buildServiceDiscoveryMiddleware puts consul server itself as target. #177

Open
gintsgints opened this issue May 23, 2019 · 1 comment

Comments

@gintsgints
Copy link

I configure tree gateway with consul with steps mentioned here:

https://github.com/cloudhrm/frontend

But when I try to call /auth endpoint of gateway, I get Invalid gateway. GW log is as follows:

error: [Tree-Gateway] Error occurred while trying to proxy request / from localhost:8000 to undefined (ETIMEDOUT) (https://nodejs.org/api/errors.html#errors_common_system_errors)
2019-05-23T17:02:36.153Z - error: HTTP GET - 502 - /auth (23790ms)

I am not function buildServiceDiscoveryMiddleware should return consul or service IP. But it sets consul IP as target.

@gintsgints
Copy link
Author

And with debug I see that actual error is failing to connect with "auth" api within consul hostname and registered service port :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant