Connection problem with Chapter 4 - Writes with Error Handling's database

Hi, there

I’m trying to execute error_handling.ipynb but I get an error when it tries to connect to the database:

from pymongo import MongoClient, errors 
uri = "mongodb+srv://m220-user:m220-pass@m220-lessons-mcxlm.mongodb.ne
t/test" 
mc = MongoClient(uri) 

The error is this:

ConfigurationError: None of DNS query names exist: _mongodb._tcp.m220-lessons-mcxlm.mongodb.net., _mongodb._tcp.m220-lessons-mcxlm.mongodb.net.

Any ideas?

I just connected to my MongoDB instance, created a new database there and it solved the problem.

1 Like