Skip to content

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

Open
@gintsgints

Description

@gintsgints

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions