Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

ruby on rails - failed with error 10068: "invalid operator: $oid"

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

adding this to my gemfile fixed the issue:

gem 'multi_json', '1.5.1'

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...