Node.js MongooseServerSelectionError无法连接到MongoDB Atlas群集中的任何服务器

Node.js MongooseServerSelectionError无法连接到MongoDB Atlas群集中的任何服务器,node.js,mongodb,express,mongoose,Node.js,Mongodb,Express,Mongoose,每当我试图连接到我的数据库时,我都会遇到这个错误 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

每当我试图连接到我的数据库时,我都会遇到这个错误

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: ht
我已经把“任何IP”和“当前IP”都列入了白名单,但仍然存在这个问题。我甚至在跟踪其他一些监视溢出q/a后关闭了所有防火墙。我怎样才能解决这个问题?谢谢