I am trying to connect to my Atlas cluster using python/pymongo on my Windows 10 PC. I am using the same uri (excluding +srv) that Compass on my PC uses to connect to the cluster but I am getting [Errno 11001] getaddrinfo failed. Code snippet follows:
uri = “mongodb://m220-student:email@example.com/test?authSource=admin&replicaSet=atlas-13r6jd-shard-0”
dbproc = MongoClient(uri)
Any help would be greatly appreciated.