node-eventstore-client icon indicating copy to clipboard operation
node-eventstore-client copied to clipboard

Connection to locally running eventstore fails when node-eventstore-client is used in a docker container.

Open hg-jarlinghaus opened this issue 4 years ago • 1 comments

When attempting to connect to Eventstore running locally while running code in a docker container the connection never succeeds and after attempting to reconnect 10 times will close the connection. Server logs seem to indicate no attempt at connecting to Eventstore reached the server. Issue sounds similar to #60, however adding verboseLogging: true fixed nothing. Repo with working example can be found here.

With that repo running building and running the container will result in the connection being closed, however running npm run build followed by node ./dist/subscribe.js results in a successful connection.

Attempting to connect to an eventstore server that isn't being hosted on my local machine results in a successful connection on both the docker container and by just running the code directly.

hg-jarlinghaus avatar Jun 10 '20 18:06 hg-jarlinghaus

Please post some logs here. You are aware that EventStore binds on localhost by default, so would not be accessible by the docker VM, unless default settings are changed

nicdex avatar Jun 20 '20 03:06 nicdex