繁体   English   中英

使用 ZCCADCDEDB567ABAE643E15DCF0974E503Z 连接到 MongoDB Atlas 时出错

[英]error while connecting to MongoDB Atlas using Mongoose

使用 ZCCADCDEDB567ABAE643E15DCF0974E503Z 连接到 MongoDB Atlas 时出现此错误。 首先我尝试使用 Mongo Client 我得到了同样的错误。 然后我切换到 mongoose,它工作正常,但突然停止工作。 我已经在网络访问中添加了“从任何地方允许”和我的 IP。

MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/

You Need to Add your System IP in Atlas where u have created ur database in Atlas.. To whitelist multiple IP addresses, go to your target cluster on MongoDB Atlas. 接下来,go 到安全选项卡下的网络访问。 在 IP 白名单选项卡上,单击添加 IP 地址。 在白名单条目下手动输入您的 IP 地址,然后单击确认。

Make sure your current IP address is on your Atlas cluster's IP whitelist as given in error message.Follow the steps given in article https://studio3t.com/knowledge-base/articles/mongodb-atlas-login-ip-whitelisting/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM