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

  • 5 September 2023
  • 0 replies
  • 28 views

Userlevel 1
Badge

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. 


This topic has been closed for comments