Connection pool paused

Hello community:

I am getting this response when I try to make several queries. Additionally, I am seeing in the Atlas metric monitor that several connections are open but I not making any query. I don’t know if both issues are related or not.

This is the connection string I am using:

client = pymongo.MongoClient(
                host,
                connect=False,
                maxIdleTimeMS=300000
            )

This the error message I see in the logs:

{“statusCode”:400,“message”:“The service Opground backend - get_candidate_coach just returned an error (HTTP 400). Please consult their documentation to ensure your call is setup properly. Raw error:\n\n{“message”:“request exception: No replica set members match selector \“Primary()\”, Timeout: 30s, Topology Description: <TopologyDescription id: 6241d8b54d146d10f39d0063, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription (‘opgroundmongodb-test-shard-00-00.2vrgk.mongodb.net’, 27017) server_type: RSSecondary, rtt: 0.001311340000029304>, <ServerDescription (‘opgroundmongodb-test-shard-00-01.2vrgk.mongodb.net’, 27017) server_type: RSSecondary, rtt: 0.0010887979997278308>, <ServerDescription (‘opgroundmongodb-test-shard-00-02.2vrgk.mongodb.net’, 27017) server_type: Unknown, rtt: None, error=AutoReconnect(‘opgroundmongodb-test-shard-00-02.2vrgk.mongodb.net:27017: connection pool paused’)>]>”}\n”,“args”:{“bubble_code”:“1648483046141x476872621267262900”}}

Could you give a piece of advise? Thank you.