Closed gintsgints closed 5 years ago
This is a code where service registers to consul: https://github.com/cloudhrm/auth/blob/7d03f00d2e18e5be3857387c49d11daeec0a4613/src/index.ts
When I try to debug, function buildServiceDiscoveryMiddleware returns correct hostname:port at:
(req as any).proxyOptions = { target: result };
All fine. Problem was with wrong address resolve in docker.
Getting error:
As I understund, tree-gateway was not able to retrieve hostname of the service.
Some example of consul usage would be helpful.
There is how I try to setup my environment: https://github.com/cloudhrm/frontend