Reputation: 24
Database connection error: 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://www.mongodb.com/docs/atlas/security-whitelist/ [nodemon] app crashed - waiting for file changes before starting...
I am trying to connect with mongodb Atlas cluster0
Upvotes: 0
Views: 107
Reputation: 11
Sometime it might be due to Ip address but usually it is due to the node js version. So please install the latest node js version from its official website.
Upvotes: 1
Reputation: 59
If you are using MongoDB Atlas, follow the following steps:
Upvotes: 0