pymongo.errors.ServerSelectionTimeoutError with atlas even when added to network access

Having this same issue but all of the suggested fixes haven’t worked. The annoying part is that I was able to connect to my database a few weeks ago but now it doesn’t work. Very frustrating, not sure what could have changed.

Edit: I removed “?retryWrites=true&w=majority’” from the end of my uri and it started working… not sure why that worked but oh well.

This answer helped me to solve the problem, thank you.

1 Like