失败并显示错误10068:“无效的运算符:$ oid" [英] failed with error 10068: "invalid operator: $oid"
问题描述
仅更新为最新版本的Mongoid(3.1.0)和sidekiq(2.7.2)
现在我得到了错误:failed with error 10068: "invalid operator: $oid"
从查看代码中,我看到这样的选择:@selector={"_id"=>{"$oid"=>"[some id]"}}
哪里会出问题?
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?
推荐答案
将此添加到我的gemfile
中解决了该问题:
adding this to my gemfile
fixed the issue:
gem 'multi_json', '1.5.1'
我认为最新版本(1.6.0)出了问题
i guess something is wrong with the latest version (1.6.0)
编辑:该宝石已更新至新版本(1.6.1),该版本解决了此问题.这里更多: https://github.com/intridea/multi_json/issues/89
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
这篇关于失败并显示错误10068:“无效的运算符:$ oid"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!