Skip to content
Advertisement

Mongoengine: Exception has occurred: ServerSelectionTimeoutError

I am having some issues connecting to my database on MongoDB. I am using mongoengine library to connect to the DB. I am also using ATLAS. Whenever I try to run my project it keeps showing “Exception has occurred: ServerSelectionTimeoutError” then show [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

JavaScript

If anyone could assist me? Or any tips?

Thanks,

Spendy

Advertisement

Answer

Sorry I figured it out.

If anyone else is facing this issue of the SSL error. You need to go to your directory where Python is installed and double click on the “Install Certificates.command” once this is done the issue went away.

Thanks,

Spendy

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement