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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容