Azure DocumentDb主机连接问题

问题描述 投票:0回答:1

我无法使用MongoDb客户端连接到azure上的DocumentDb主机,我按照documentation的链接

然后来自mongochef客户端的错误消息:

Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}.
Client view of cluster state is
{type=UNKNOWN, servers=[
   {address=tatico-nosql.documents.azure.com:10250, type=UNKNOWN, state=CONNECTING, exception=
      {com.mongodb.MongoSocketOpenException: Exception opening socket},
       caused by {java.net.SocketTimeoutException: connect timed out}
    }
 ]
azure azure-cosmosdb
1个回答
0
投票

你启用了IP访问控制吗?如果是,请同时将您的客户端IP地址添加到允许的IP地址范围列表中,如下所示。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.