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

  • 5 September 2023
  • 0 replies

Userlevel 1

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 (, 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