問題描述
ServerSelectionTimeoutError:documentdb.documents.azure.com:10255:超時 (ServerSelectionTimeoutError: documentdb.documents.azure.com:10255: timed out)
我正在運行一個 mongodb 應用程序以連接到本地運行的 azure cosmosdb。我正在運行一個已經構建的燒瓶應用程序。我需要啟用我機器上的哪個端口才能連接到遠程 cosmosdb?
Anaconda environment: Python 3.6
MongoClient
replicaset is globaldb
ssl is True
我的燒瓶應用程序出現上述錯誤
參考解法
方法 1:
Check this thread out: https://github.com/Azure/azure‑cosmos‑dotnet‑v2/issues/256. Start by using /EnableMongoDbEndpoint flag and point it to 10250 port. It might work.
(by Shreyas Moolya、Rakesh Kumar)