While setting up DocumentDB with a bastion server, I successfully connected using MongoDB Compass. However, there seems to be a connection issue when attempting to connect programmatically in the code

0

This is my python program "from pymongo import MongoClient

https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html#connect_programmatically-tls_disabled

I was using that but I was getting a timeout error like "An error occurred: No servers found yet, Timeout: 5.0s, Topology Description" However in the MongoDB compass I could easily connect the database and I also created some tables.

NOTE: In the security group I was given all traffic access like 0.0.0.0 but still I'm getting the same error. Please anyone resolve this issue

KARTHIK
posta 6 mesi fa209 visualizzazioni
1 Risposta
0

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande