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

后端 未结 8 1778
长发绾君心
长发绾君心 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:43

    At times, it may be due to system settings as well.

    In my case it was server system's date & time, it was not updated to current date & time settings, hence the connection to db from the server was refused. Updated the same, and restart the server, connection was successful.

提交回复
热议问题