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
asked 5 months ago185 views
1 Answer
0

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions