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

RailsEventStore::AsyncHandler: undefined method `transform_keys' #1786

Open
ncphillips opened this issue Jul 4, 2024 · 1 comment
Open

Comments

@ncphillips
Copy link

ncphillips commented Jul 4, 2024

Using [email protected] or 2.14.0

I have some ActiveJobs that include RailsEventStore::AsyncHandler.

Whenever I try to perform a job with them, they explode.

async_handler_helpers.rb:17:in `block (2 levels) in with': undefined method `transform_keys' for 

#<Videos::CreatedEvent:0x0000000115fb43c8 
  @event_id="d9c1b31a-f3a6-42ef-abd2-d1fe20363f91",
  @metadata=#<RubyEventStore::Metadata:0x0000000115fb42b0 
    @h={
      :correlation_id=>"e85483a0-e22a-4b75-ab2c-072e8795f80b",
      :timestamp=>2024-07-04 12:24:09.191781 UTC,
      :valid_at=>2024-07-04 12:24:09.191781 UTC
    }>, 
  @data={:gym_id=>1, :video_id=>10}> 
(NoMethodError) irb(main):017> Gyms::UpdateMeteredUsageJob.perform_now(event)

Looks like it's happening here

image
@ncphillips
Copy link
Author

I think this is related to #1334

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

1 participant