Mongo shell has to know that you are allowing read operations from secondaries, this means you have to set “slave okay”. Do this:
rs.slaveOk()
So, you only need to do this when you query secondaries and need to be used only once per session. After this, you can normally query secondaries.