ServerSelectionTimeoutError NetworkTimeout, topology_type: ReplicaSetNoPrimary

Hello guys, Connection to my mongo atlas db times put with the following error,

description: “cluster0-shard-00-01-pri.mghyr.mongodb.net:27017: timed out,cluster0-shard-00-00-pri.mghyr.mongodb.net:27017: timed out,cluster0-shard-00-02-pri.mghyr.mongodb.net:27017: timed out, Timeout: 30s, Topology Description: <TopologyDescription id: 62f0df03e2be3642332186bb, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription (‘cluster0-shard-00-00-pri.mghyr.mongodb.net’, 27017) server_type: Unknown, rtt: None, error=NetworkTimeout(‘cluster0-shard-00-00-pri.mghyr.mongodb.net:27017: timed out’)>, <ServerDescription (‘cluster0-shard-00-01-pri.mghyr.mongodb.net’, 27017) server_type: Unknown, rtt: None, error=NetworkTimeout(‘cluster0-shard-00-01-pri.mghyr.mongodb.net:27017: timed out’)>, <ServerDescription (‘cluster0-shard-00-02-pri.mghyr.mongodb.net’, 27017) server_type: Unknown, rtt: None, error=NetworkTimeout(‘cluster0-shard-00-02-pri.mghyr.mongodb.net:27017: timed out’)>]>”

it used to work perfectly and i didn’t make any change, also i didn’t get any alert about replica no set primary.

If you don’t have a static IP contract, there might be an IP change on your app’s side. I suggest you check your IP access list (and other network security) and the host’s current IP.