Skip to content
Advertisement

Tag: pymongo-3.x

pymongo converts . variables into a dict

I am inserting the data to mongoDB collection through pymongo. I have logged all the information and data which is being sent to update_one statement. Data which is logged just before update_one statement : But when it got inserted into “test” then it got appended like this : Using this to update the document: So here you’ll see parsed data

Why is PyMongo 3 giving ServerSelectionTimeoutError?

I’m using: Python 3.4.2 PyMongo 3.0.2 mongolab running mongod 2.6.9 uWSGI 2.0.10 CherryPy 3.7.0 nginx 1.6.2 uWSGI start params: I setup my MongoClient ONE time: I try and save a JSON dict to MongoDB: It works via a unit test that executes the same code path to mongodb. However when I execute via CherryPy and uWSGI using an HTTP POST,

Advertisement