ServerSelectionTimeoutError: MongoDB connection issue - unexpected EOF while reading from SSL routines

I am getting error:

raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: vuln-intel-cluster0-shard-00-01.viwbl.mongodb.net:27017: [(‘SSL routines’, ‘’, ‘unexpected eof while reading’)],vuln-intel-cluster0-shard-00-02.viwbl.mongodb.net:27017

I have added my(ec2) ip as well under network access. Till yesterday, my instance was able to connect to db. But today I got this error.

Hi @ABC_EDF - welcome to the forums!

I’m sorry you’re seeing this problem. It does sound like a connection problem. Is it possible the IP address of your client machine has changed?

If this is a development machine, you can go to the Network Access page in the Atlas web interface, and one of the items should say (includes your current IP address). If none of them does, then maybe your IP has changed and you need to re-add it.

Let me know if this works!

Mark