ConfigurationError: The DNS operation timed out after 30.000526189804077 seconds

i am getting following error while connecing to mongo client.

from pymongo import MongoClient
uri = “mongodb+srv://m220student:m220password@mflix-meqw2.mongodb.net/test”
client = MongoClient(uri)

error:
ConfigurationError: The DNS operation timed out after 30.000526189804077 seconds

srv is working file while connecting via CLI.

i am not able to connect mongo db cluster via jupter while it is working with cli.

I am too facing the same problem . This is happening on windows 10 not sure what is the problem and I am stuck

Hi @Kapil_67828,

Please share the screenshot and connection string so that we can take a look.

Kanika