Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB "j must be numeric or a boolean value"

Tags:

mongodb

I've set up my own local mongodb (v. 3.0.2) instance on a local ubuntu version (14.10) and I'm using genghis(v. 2.3.11) to visualize it. My programm is able to create new documents in the database, but when I try to save a newly created document or delete a document in genghis it always returns "j must be numeric or a boolean value" but it still creates/deletes the document. The error doesn't show up when I edit a document. The only thing I could find when I tried to find a solution on google was this: https://github.com/mongodb/mongo/blob/master/src/mongo/db/write_concern_options.cpp which makes me think that it's a problem with my mongodb setup (and has nothing to do with genghis), but I do not know how to resolve this.

like image 395
Joba Avatar asked Jan 22 '26 06:01

Joba


1 Answers

Have you tried running the code against Mongo 2?

I ran into this same error when I tried connecting to Mongo 3 from a service that was using client libraries intended for Mongo 2.

like image 152
Mat Schaffer Avatar answered Jan 23 '26 20:01

Mat Schaffer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!