-
Notifications
You must be signed in to change notification settings - Fork 121
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
Ruby Event Store Browser not loading events because of nil error #762
Comments
Can you please double-check that you don't have Error message would suggest there was
|
I know, it's quite strange. I can see the query that was run before the error in the console and it returns the rows shown above. Also to double check I ran the following query on my database to ensure I have a timestamp entry for each record with some date:
and got no results back |
Is there a way you could recreate this error in a sample app? |
I'll give it a try! |
|
Yes, we mostly copied the event class from your demo project (I think the only difference is that we named it AppEvent). |
It all comes to https://github.com/RailsEventStore/cqrs-es-sample-with-res/blob/0de944cf7fa31ba26ee1572b3ccb4d3215b14aed/lib/event.rb#L7 There are several lessons to unpack from it:
I have newer implementation of dry-struct event to share from commercial project, that eventually would become a gem. For now please change your def self.new(data: {}, metadata: {}, **rest)
super(rest.merge(data).merge(metadata: metadata))
end |
Thanks, will give that a try! |
The API call to load events is returning a 500 error for me and I'm unsure what is wrong.
in https://github.com/RailsEventStore/rails_event_store/blob/v1.1.1/ruby_event_store-browser/lib/ruby_event_store/browser/json_api_event.rb#L32
I tested with both 1.0.0 and 1.1.1.
An example metadata entry of the batch that is parsed.
Screenshot of all records that are loaded in the batch.
Setup is pretty standard otherwise, not using custom serializer or similar
The text was updated successfully, but these errors were encountered: