D
D
dtfanddtf2021-07-22 10:56:28
MongoDB
dtfanddtf, 2021-07-22 10:56:28

Why is MongoDB not working: pymongo.errors.ServerSelectionTimeoutError?

I'm using the latest version of pymongo (3.12.0), tried other versions - but MongoClient('url') was considered an error.

Full Error: pymongo.errors.ServerSelectionTimeoutError: cluster-shard-00-02.pslht.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129),cluster- shard-00-00.pslht.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129),cluster-shard-00-01.pslht.mongodb.net :27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129), Timeout: 30s, Topology Description: , , ]>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dtfanddtf, 2021-07-22
@dtfanddtf

Used the certifi library , it helped. Thanks to the commentator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question