All threads / ActiveJob Deserialization Error that doesn't make sense

Ask A Question

Notifications

You’re not receiving notifications from this thread.

ActiveJob Deserialization Error that doesn't make sense

Ayanga asked in Rails

I have a Ruby/Rails application deployed on AWS ElasticBeanstalk and I use Sidekiq with Redis to handle all of the background jobs.

My app has events that users can create and there's a job that runs weekly that emails users, notifying them of the upcoming events. Lately I've beeg seeing this error:

ActiveJob::DeserializationError: Error while trying to deserialize arguments: Couldn't find Event with 'id'=45

This doesn't make sense to me because the event with this ID was created at least 3 days before the job ran. When I check the console or database, the event clearly exists and hasn't been updated or deleted. Why can't ActiveJob find it? Has anyone seen something like this before?

I'm running into a similar issue right now. ActiveJob/Sidekiq cannot find the record even though it exists. After a retry it does find it.

Did you solve your issue? Curious to hear your findings.

This was a couple years ago so I don't even remember

Thanks for the follow up either way. I think I got it resolved by simply upgrading the sidekiq gem

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 52,887+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.