M220P course: unable to fetch movies while opening http://localhost:5000/

raise ServerSelectionTimeoutError(pymongo.errors.ServerSelectionTimeoutError: mflix-shard-00-01.2to9m.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125),mflix-shard-00-00.2to9m.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125),mflix-shard-00-02.2to9m.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)

There are too many topics but none of them direct me to the solution of this problem. Appreciate any help.

One of those threads should be able to help you
Can you connect by shell to your DB?

I was successful in connecting to Mongo DB through Mongosh

c:\MongoDB\mflix-python>mongosh “mongodb+srv://mflix.2to9m.mongodb.net/Mflix” -u m220student
Enter password: ************
Current Mongosh Log ID: 61045851ba939dd657ce197b
Connecting to: mongodb+srv://mflix.2to9m.mongodb.net/Mflix
Using MongoDB: 4.4.6
Using Mongosh: 1.0.3

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

Atlas atlas-dxi0d1-shard-0 [primary] Mflix>

I am able to connect to the database through MongoCompass too.

Have you looked at threads which discuss about python version/upgrade,certs install etc and using tlsCAFile=certifi.where()
May be others more knowledgeable on M220P/python like Eoin_Brazil, steevej can help you more on this

By specifying /Mflix at the end of the URI you indicate that you want to use the Mflix database. As far as I know, the database for M220P is sample_mflix.