vapor-community / mongo-driver

MongoDB driver for Fluent
28 stars 26 forks source link

NotMasterNoSlaveOk #54

Open valeriomazzeo opened 6 years ago

valeriomazzeo commented 6 years ago

As described in https://github.com/OpenKitten/MongoKitten/issues/167

I keep randomly getting this error, not sure what could be the cause:

MongoKitten.MongoError.invalidResponse([{\"ok\":0.0,\"codeName\":\"NotMasterNoSlaveOk\",\"errmsg\":\"not master and slaveOk=false\",\"code\":13435}])

Environment:

Expected behaviour:

mongo-driver should shutdown MongoKitten's server object and try to reconnect on the next query.

@Joannis