Hey @Asparagus9159,

Thanks for reaching out to the MongoDB Community forums :sparkles:

Please provide the full traceback and error message for the exceptions you are experiencing. You can redact sensitive info like host names or user names.

Please also provide the output of the pip list so we can determine if you are using PyOpenSSL or not.

Can you also share what server product (atlas dedicated, atlas free tier) and version (MongoDB 4.0, 5.0, etc) you are using? In addition to it, if you are using MongoDB Atlas, have you whitelisted your IP address of VPS to the cluster?

Looking forward to your response.

Best regards,
Kushagra