Hi Mongodb community.
I am facing the following error on my app which uses pymongo 4.5.
ServerSelectionTimeoutError
No replica set members found yet, Timeout: 30s, Topology Description: <TopologyDescription id: 64ef55b92030ab4b7a836e07, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('cluster0-shard-00-00.if2rk.mongodb.net', 27017) server_type: Unknown, rtt: None>, <ServerDescription ('cluster0-shard-00-01.if2rk.mongodb.net', 27017) server_type: Unknown, rtt: None>, <ServerDescription ('cluster0-shard-00-02.if2rk.mongodb.net', 27017) server_type: Unknown, rtt: None>]>
The strange thing is this happens only sometimes, not always. Like about 1% among total tries.
This is my connection string.
mongodb+srv://{MONGO_DB_USER}:{MONGO_DB_PASSWORD}@{MONGO_DB_HOST}/{MONGO_DB_DATABASE}?retryWrites=true&w=majority&replicaSet={MONGO_DB_REPLICA_SET}&readPreference=PrimaryPreferred
Thanks in advance!