1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
Hi Karthik,
Is TLS enabled or disabled on your cluster? Also which version of pymongo are you using? This link may help but I would try and follow the 2 guides I'll link below: https://stackoverflow.com/questions/70770130/pymongo-connection-to-documentdb-cluster#:~:text=Add%20a%20comment-,3%20Answers,-Sorted%20by%3A
For TLS enabled follow these steps: https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#:~:text=with%20TLS%20Disabled-,Connecting%20with%20TLS%20Enabled,-Copy%20Plain%20Link
For TLS disabled follow these steps: https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#:~:text=connection%0Aclient.close()-,Connecting%20with%20TLS%20Disabled,-Copy%20Plain%20Link
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 8 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr
I employed this code from "https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#connect_programmatically-tls_disabled". It functioned correctly on the bastion server, but it isn't working on my local server and also I get this error "raise ServerSelectionTimeoutError( pymongo.errors.ServerSelectionTimeoutError:"