express-http-proxy icon indicating copy to clipboard operation
express-http-proxy copied to clipboard

Connection refused error

Open den-kip opened this issue 5 years ago • 1 comments

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?

den-kip avatar Feb 26 '20 19:02 den-kip

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

alexandcote avatar Feb 27 '20 01:02 alexandcote