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

Bug: Events are not Read #98

Open
kodeine opened this issue Nov 26, 2021 · 13 comments
Open

Bug: Events are not Read #98

kodeine opened this issue Nov 26, 2021 · 13 comments
Labels
bug Something isn't working

Comments

@kodeine
Copy link
Contributor

kodeine commented Nov 26, 2021

@AlexandreDecollas @Vinceveve

I wasnt able to read the events in my app i thought my app broke after updating to use latest version of this package but then i gave a try running examples in this package and the bug actually exists.

Events are being written properly but not Read. Following is the output from examples, notice the saga never runs because it couldn't read event.

image

and following is when i just use registerReadBus

image

*updated
nestjs-geteventstore
5.0.3 <-- read's not being done.
4.1.1 <--- reads work fine!

node -v
v16.10.0

npm -v
7.24.0

Event Store
21.6.1.0

@kodeine
Copy link
Contributor Author

kodeine commented Nov 26, 2021

@jdharandas would you be able to help me figure this out?

@jdharandas
Copy link
Contributor

Hello, @kodeine. It seems that the WriteEventsPrepublishService is being included with the read module, but it shouldn't. This is being fixed in 5.1.x as a side effect, as we have removed that dependency for that service, but we should patch it in 5.0.* too.

@kodeine
Copy link
Contributor Author

kodeine commented Dec 13, 2021

@jdharandas i tried with the new PR #100 you have but events are still not being read.

@kodeine
Copy link
Contributor Author

kodeine commented Dec 22, 2021

@jdharandas any idea when there will be a fix for reading events on latest version?

@jdharandas
Copy link
Contributor

@kodeine I won't be able to take a look at this until January the 10th (more or less)

@jokesterfr jokesterfr added the bug Something isn't working label Jan 14, 2022
@kodeine
Copy link
Contributor Author

kodeine commented Jan 27, 2022

Hello,

is there any updates on this?

@kodeine
Copy link
Contributor Author

kodeine commented Feb 11, 2022

@AlexandreDecollas @Vinceveve @jdharandas
Any idea when this will be fixed? Also, class EventService is not exportable so if we need to use getProjectionState method from EventStore we cannot.

@AlexandreDecollas
Copy link
Contributor

Hi here, I cannot reproduce the error, could you provide a example code that reproduce this issue please? (btw, I added all missing exports on this lib)

@kodeine
Copy link
Contributor Author

kodeine commented Mar 23, 2022

@AlexandreDecollas
so i ran the examples/ folder again and following is the output.
I know its related to the DTO but looks like example folder isnt working.

EDIT PR #112 fixes this DTO issue but subscriptions are still not working

image

image

image

image

image

@kodeine
Copy link
Contributor Author

kodeine commented Apr 10, 2022

@AlexandreDecollas @Vinceveve
After fixing the dto issue, subscriptions are not working and events are not being read.
image

Root case is payload is coming as undefined,
image

also, persistentSubscription.on('data'... is suppose to return a single object not two.

image

here this.eventBus comes undefined as well.
image

@kodeine
Copy link
Contributor Author

kodeine commented Apr 11, 2022

@jokesterfr since you added the label as a bug, were you able to test this at your end as well?

@jdharandas
Copy link
Contributor

@kodeine 5.x is not really working, I have tested it and it has a lot of bugs (not only this one). As @AlexandreDecollas is the "owner" of this version, I will try to work with him to create the fixes, but at this moment I am working with @Rzial in a 6.x that fixes those bugs and adds new functionalities (fex: write event bus middlewares).

@kodeine
Copy link
Contributor Author

kodeine commented Apr 12, 2022

@jdharandas thank you for the update, i was going crazy testing this i thought i was making some mistake unknowingly but then i started digging into the code and found issues. Thanks a lot for your input. I will wait for v6, is it going to be in this repo or somewhere else? I actually was going live with my product and wanted to make sure i am on latest versions but seems like i cant use eventstore 20.10.x. If you have any timeline for v6 or fixes for this v5, please do let me know. Once again, thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants