Skip to main content

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

  • September 5, 2023
  • 0 replies
  • 37 views

Forum|alt.badge.img

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 replies.