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(

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 ('', 27017) server_type: RSSecondary, rtt: 0.001311340000029304>, <ServerDescription ('', 27017) server_type: RSSecondary, rtt: 0.0010887979997278308>, <ServerDescription ('', 27017) server_type: Unknown, rtt: None, error=AutoReconnect(' connection pool paused')>]>"}\n”,“args”:{“bubble_code”:“1648483046141x476872621267262900”}}

Could you give a piece of advise? Thank you.