You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sidekiq 7 now requires that arguments serialize "safely" to JSON. This means they need to become basic types such as String.
Right now, trying to send an object with a Nori::StringWithAttributes to a Sidekiq worker queue raises an ArgumentError with something like
Job arguments to SomeWorker must be native JSON types, but "OK" is a Nori::StringWithAttributes.
See https://github.com/sidekiq/sidekiq/wiki/Best-Practices
To disable this error, add Sidekiq.strict_args!(false) to your initializer.
The text was updated successfully, but these errors were encountered:
Coming back to this: if you need lossless transmission of some data:
transmit it as XML, and then process it with nori on the other side.
If you are OK with losing some data:
do the conversion yourself to a basic data type (like String).
I'm looking at the history of this project and can only conclude that seamless serialization/deserialization of parsed data in memory is not really in scope, since we already have a solution for that: XML.
Sidekiq 7 now requires that arguments serialize "safely" to JSON. This means they need to become basic types such as
String
.Right now, trying to send an object with a
Nori::StringWithAttributes
to a Sidekiq worker queue raises anArgumentError
with something likeThe text was updated successfully, but these errors were encountered: