ServerSelectionTimeoutError Pymongo
问题 I'm trying out pymongo for the first time and I keep getting a ServerSelectionTimeoutError. When using mongo commandline to login I run a command as follows $ mongo-3.0 --ssl test.net:27080/db_qa --sslAllowInvalidCertificates -u content -p MongoDB shell version: 3.0.12 Enter password: and I'm able to connect fine but with pymongo I get the error pymongo.errors.ServerSelectionTimeoutError: test.net:27080: [Errno 60] Operation timed out My code is as follows from pymongo import MongoClient