Error code: [13435] not master and slaveOk=false

This error usually occurs when attempting to read data from a set of secondary servers. Set the driver’s ReplicaSet connection property in the connection string to the set of secondary servers (https://cdn.cdata.com/help/DGH/cloud/default.htm#RSBMongodb_p_ReplicaSet), and also set the driver’s SlaveOK connection property to True. This should allow you to connect and read data from secondary servers.

2 Likes