Coder Social home page Coder Social logo

Comments (4)

alexlawrence avatar alexlawrence commented on June 15, 2024 5

Sorry for my cryptic comment. Yes, I always managed to connect with the Node.js client by using the factory syntax EventStoreDBClient.connectionString('...'); I mentioned this in my first comment. Sorry if it wasn't clear enough.

It did only not work for me when using the constructor function (new EventStoreDBClient()). However, I found out what the problem was. I was missing the "insecure" flag for the ChannelCredentialOptions constructor argument. 🤦

This issue is therefore invalid and can be closed.

from eventstore-client-nodejs.

YoEight avatar YoEight commented on June 15, 2024 1

Can you share how you started your docker container please?

from eventstore-client-nodejs.

alexlawrence avatar alexlawrence commented on June 15, 2024 1

I followed the docs on this and tried both ways that are described there.

This means, I tried it with both of the following commands:

docker run --name esdb-node -it -p 2113:2113 -p 1113:1113 eventstore/eventstore:latest --insecure --run-projections=All
docker run --name esdb-node -it -p 2113:2113 -p 1113:1113 eventstore/eventstore:latest --insecure --run-projections=All --enable-external-tcp --enable-atom-pub-over-http

Actually, I am using docker-compose, but I don't think this should make a difference.

What I didn't try so far is to connect from within the Docker container itself (using localhost). So far, I either tried to connect from the host or another container that has access to the EventStore container. The factory function variant (EventStoreDBClient.connectionString("<your value>");) works for both of those scenarios.

from eventstore-client-nodejs.

YoEight avatar YoEight commented on June 15, 2024

The last part of your comment is hard to understand. What do you mean by it worked on both scenarios? Do you mean you managed to connect with the NodeJS client?

I propose to make sure that in the most simple use case, you are able to connect to a server while using the nodejs client.

The goal is to determine if the client is at fault or your docker configuration.

from eventstore-client-nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.