villadora / express-http-proxy

Proxy middleware for express/connect
Other
1.23k stars 235 forks source link

Connection refused error #451

Open den-kip opened 4 years ago

den-kip commented 4 years ago

I am trying to make an api request to another host in a different docker container like this:

app.use('/api/tasks', proxy('http://tasks-service:5002/api/tasks'));

but am getting a connection refused error:

"err":"connect ECONNREFUSED 172.21.0.6:5002"

How do I access the tasks-service routes in users-service container?

alexandcote commented 4 years ago

I don't think this is an issue with this library.