'When run node js application getting error whitelist ip in mongo cluster
I have implemented node js application and used MongoDB as database using nginx to run the project
Everything working fine in local but when code is published in AWS linux2 getting error
body-parser deprecated undefined extended: provide extended option server.js:39:17 (node:30529) UnhandledPromiseRejectionWarning: 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/
I have already allowed all IP's in-network access to mongo cluster 0.0.0.0/0 (includes your current IP address)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|