MongoDB suddenly stopped working (MongoServerSelectionError, ReplicaSetNoPrimary)

Hi @Philip_Kristoffer_Tosing,

I’m not too familiar with replit but I have found the following on our forums regarding replit connectivity to Atlas with “no changes made” as well.

It could possibly be related to MongoDB atlas stopped working on replit (Python, pymongo) - #15 by thedankboi - Bug Reports - Replit Ask

The only reason I speculate this is because you’re able to connect with Compass which shows to me there isn’t any issues with the cluster. In addition to that, I have not found any issues reported on https://status.cloud.mongodb.com/ recently.

Might be worth double checking with replit as well in this case as your troubleshooting looks okay to me at this stage. If you want, you could also contact the atlas in-app chat support team to check if there are any issues with your cluster although since you have connected with Compass it may not be the case. Good to may be double check though.

Regards,
Jason