Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

writeEvent not finishing #4

Description

@igortas

Hi,
I'm trying to play around the boilerplate code and understand how is working the eventbus structure, but I have problems writing to the eventstore.
I've tried to console.log the functions from commands, command handlers, till the event handlers, and I can see that code works well until needs to write to the store.

console.log('444', 'goes here');
const result = await this.eventStore.client.writeEvent(streamName, type, event);
console.log('5555', 'never is shown this message');

I'm starting the project from bash with up.sh script and everything is ok, project running on 7070 port.
One issue I have on windows 10 with docker running in daemon mode the evenstore, so I need to go to docker settings and to expose daemon on port 2375 without TLS, this was like workaround to start the eventstore.
But, everything is hook-up and i can see that the connection to evenstore is established.

{ protocol: 'http',
  hostname: 'eventstore',
  tcpPort: 2113,
  httpPort: 2113,
  credentials: { username: 'admin', password: 'changeit' },
  poolOptions: { min: 1, max: 10 } }
}

BR, Igor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions