Error : “Could not connect to any servers in your MongoDB Atlas cluster”

后端 未结 8 1744
长发绾君心
长发绾君心 2021-02-08 22:41

My node app gives me this message \"Could not connect to any servers in your MongoDB Atlas cluster. Make sure your current IP address is on your Atlas cluster\'s IP whitelist\"

8条回答
  •  情深已故
    2021-02-08 23:37

    Try keeping these questions in mind when you face such an issue with your mongodB that:

    Did I changed my IP address before I started working with my mongodb again after a long break? If no, then please change it because usually mongodb removes it after every 6 hours.

    Did I moved from the place where I worked last time? If yes, then please change your IP again and activate it.

    Please do visit the link https://studio3t.com/knowledge-base/articles/mongodb-atlas-login-ip-whitelisting/#whitelist-multiple-or-additional-ip-addresses and learn more about why you get such error and how deal with them. It helps a lot.

提交回复
热议问题