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
질문됨 6달 전209회 조회
1개 답변
0

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠