Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR [EventStore] ProtocolError: missing required 'result' | How to fix this error! #54

Open
un4ckn0wl3z opened this issue Jan 25, 2023 · 1 comment

Comments

@un4ckn0wl3z
Copy link

I using this lib for storing application events.
Storing process is success but got this error from internal of this lib. How to fix it. I think it throwing from protobufjs

full log:
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [NestFactory] Starting Nest application...
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] AppModule dependencies initialized +25ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] EventStoreModule dependencies initialized +1ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] EventStoreCoreModule dependencies initialized +0ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] EventStoreModule dependencies initialized +0ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [EventStore]
Connecting to persistent subscription hero on stream $ce-hero!

[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] CqrsModule dependencies initialized +1ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] EventStoreCoreModule dependencies initialized +0ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [InstanceLoader] HeroesGameModule dependencies initialized +1ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [RoutesResolver] HeroesGameController {/hero}: +3ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [RouterExplorer] Mapped {/hero/:id/kill, POST} route +2ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [RouterExplorer] Mapped {/hero, GET} route +1ms
[Nest] 2912 - 01/25/2023, 4:48:08 PM LOG [NestApplication] Nest application successfully started +5ms
[Nest] 2912 - 01/25/2023, 4:48:09 PM LOG [EventStoreBroker] EventStore connected!
KillDragonCommand...
[Nest] 2912 - 01/25/2023, 4:48:12 PM ERROR [EventStore] ProtocolError: missing required 'result'
{
eventNumber: 'ID52bbzfgIFuAFYaQu4rNNSvw4QxIIxm',
heroId: '1234',
dragonId: 1
}
HeroKilledDragonEvent...
{"eventNumber":"ID52bbzfgIFuAFYaQu4rNNSvw4QxIIxm","heroId":"1234","dragonId":1}
Inside [HeroesGameSagas] Saga
{"eventNumber":"ID52bbzfgIFuAFYaQu4rNNSvw4QxIIxm","heroId":"1234","dragonId":1}
Async DropAncientItemCommand...
[Nest] 2912 - 01/25/2023, 4:48:13 PM ERROR [EventStore] ProtocolError: missing required 'result'
Async HeroFoundItemEvent...
{"eventNumber":"ORw0k9ywhPNSmS9ZYI9gWWYO8RyRqQEl","hero":"1234","itemId":"0"}

@eugenk
Copy link

eugenk commented Jul 20, 2023

Which version of Eventstore are you running? This pull request has introduced a change that breaks node-eventstore-client@0.2. This means that, as long as nestjs-event-store is using node-eventstore-client@0.2, it is only compatible with Eventstore <= 21.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants