mongodb-js/connect-mongodb-session

upgrading to 2.4.0, not master error

koetaro opened this issue · 3 comments

Hello everyone

After upgrading to this version am getting,
Error: Error creating index: not master
at /node_modules/connect-mongodb-session/index.js:92:23
had to rollback to 2.3.3 to make it work

We upgraded our MongoDB driver version to 3.6, so that is likely the cause. Can you please post what version of MongoDB you're using and whether you're connecting to a standalone, replica set, sharded cluster, or MongoDB Atlas? And also, whether you're getting this error in production or running tests?

Hello, we are connecting to Mongo Atlas at production environment. version 4.0.19

Did you find a fix for this issue @koetaro ? We are having this issue connecting to https://github.com/nodkz/mongodb-memory-server