just updated to the latest version of mongoid (3.1.0) and sidekiq (2.7.2)
now i'm getting the error : failed with error 10068: "invalid operator: $oid"
from looking into the code i see a select like that: @selector={"_id"=>{"$oid"=>"[some id]"}}
what can get wrong here?
相关问题
- MongoDB can not create unique sparse index (duplic
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Spring Data MongoDB - lazy access to some fields
- Eager-loading association count with Arel (Rails 3
相关文章
- mongodb有没有什么办法禁止读取数据的时候进行缓存
- mongodb-aggregate聚合查询分组后如何获得多字段
- Right way to deploy Rails + Puma + Postgres app to
- mongodb error: how do I make sure that your journa
- How to track MongoDB requests from a console appli
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
This is actually happening because BSON::ObjectId is not part of JSON... so when Sidekiq tries to serialize the args to the worker, it pukes. Check out this comment: https://github.com/mperham/sidekiq/issues/951#issuecomment-19497803
The fix is simply to convert IDs to strings when performing a job like:
adding this to my
gemfile
fixed the issue:i guess something is wrong with the latest version (1.6.0)
EDIT: the gem has been updated to new version (1.6.1) that fixed this issue. more here: https://github.com/intridea/multi_json/issues/89