MongoDB secondary replica does not have collections as in primary
Error :
"$err" : "not master and slaveOk=false", "code" : 13435
Solution :
serverdb:SECONDARY> rs.slaveOk()
Running Command rs.slaveOk() on secondary instance is the solution.
Error :
"$err" : "not master and slaveOk=false", "code" : 13435
Solution :
serverdb:SECONDARY> rs.slaveOk()
Running Command rs.slaveOk() on secondary instance is the solution.