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://
mc = MongoClient(uri) 

The error is this:

ConfigurationError: None of DNS query names exist:,

Any ideas?

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

1 Like