pymongo.errors.ConfigurationError: None of DNS query names exist

Hi there,

I am on Ticket Connection and I am getting the following error when executing

python run.py

The status page opens and the CONNECTION shows CURRENTLY VALIDATING and stays that way. The error is,

pymongo.errors.ConfigurationError: None of DNS query names exist: : _mongodb._tcp.mflix–m5hjq.mongodb.net., _mongodb._tcp.mflix–m5hjq.mongodb.net.mshome.net.

I am not getting any error when executing the tests or when connecting to the cluster from mongo shell. My connection string in the .ini file is,

MFLIX_DB_URI = mongodb+srv://username:password@mflix-m5hjq.mongodb.net

Your input appreciated, Thank you.

Are you using virtualenv or anaconda?

If anaconda, did you activated mflix env?

2 Likes

I am using virtualenv. So I changed the URI to mongodb+srv://username:password@mflix-m5hjq.mongodb.net/test?retryWrites=true. That got it working.