I’m having some issues when runing the website for the first time.

I’m using a MongoDB Atlas shared instance as described in the course.
I can browse the test collection with MongoDB Compass, I’ve renamed the .ini file and set the MFLIX_DB_URI field on it. I can even browse the website on http://localhost:5000/ and the HTML renders fine, but it fails to connect to the API.

 [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129) - - [28/Oct/2021 11:34:58] "GET /api/v1/movies/facet-search?cast=Denzel%20Washington&page=0 HTTP/1.1" 400 -

Ended up being, as the error message indicated, that MongoDB Atlas certificate CA expired.
I found a solution here:

  1. Download
  2. rename file .pem to .cer
  3. double click and install

It’s odd they haven’t sort this out yet on their servers.

1 Like

please help how to connect mongodb from jupyter …this ssl certificate expired thing is still showing, even though i have downlooaded and installed the above stuff

Hello, did you get this sorted out? I am working through it now

Hey @lucy_matulich,

Welcome to the community forums! :leaves:

Did you try the above solution? I am linking another forum post that might contain the solution to your problem: [M220] Connection issue trying to connect with mongo shell: (SSL CERTIFICATE_VERIFY_FAILED) - #5 by Matias_Zulberti

If these don’t help, since this is an old post, it would be better to create a new post and there, it would be great to post a screenshot/explanation of what you are trying to do and the error you are getting.

Feel free to reach out for anything else as well.


1 Like