gpt4 book ai didi

azure - Azure DocumentDb 主机连接问题

转载 作者:行者123 更新时间:2023-12-03 04:25:41 25 4
gpt4 key购买 nike

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

enter image description here

然后来自 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}
}
]

最佳答案

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

enter image description here

关于azure - Azure DocumentDb 主机连接问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43662501/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com