An error occurred while loading navigation: ‘not master and slaveOk=false’: It is recommended to change your read preference in the connection dialog to Primary Preferred or Secondary Preferred or provide a replica set name for a full topology connection.
I got the above error in compass inspite of the fact that the entered connection string has preference primary. How to fix this?