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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ