Closed leoplct closed 1 month ago
Is this a duplicate of https://github.com/hotwired/turbo-rails/issues/522?
Is this a duplicate of #522?
Maybe it's related, but It's a different error message.
It's the same underlying problem - SafeBuffer
s not being serialized.
I am getting the same error. Running rails edge as recommended in #522 did not fix the issue for me. It does not seem to be the exact same issue but separate.
Gemfile:
rails (7.1.2) and tried on rails edge
sidekiq (7.2.0)
@drale2k thank you for double-checking. This is likely the same type of error as the Active Job variation, but specifically to Sidekiq's Active Job adapter.
I am getting the same error when updating a Rails model with the broadcasts_refreshes
directive in it. I was testing the new features in Turbo 8 beta and subscribed views will not refresh. I assume it's because of this issue.
rails 7.1.2 sidekiq 7.2.0 turbo-rails 2.0.0.pre.beta
any ideas?
Edit: Adding Sidekiq.strict_args!(false)
to my sidekiq initializer as recommended in #522 fixed the issue. I wonder if there could be any side effects from this though. That being said, Turbo 8 is rocking it! Great job!
Adding Sidekiq.strict_args!(false) to my sidekiq initializer as recommended in https://github.com/hotwired/turbo-rails/issues/522 fixed the issue. I wonder if there could be any side effects from this though
Rather than just disabling sidekiq's args-checking, another alternative might be to add this monkeypatch in an initializer:
Rails.application.config.after_initialize do
Turbo::Streams::BroadcastStreamJob.class_eval do
def self.perform_later(stream, content:)
super(stream, content: content.to_str)
end
end
end
I got this error when I updated the record.
Profile.find(1).update(column: true)
Gemfile
Active record