The answer in this related post is correct. You should:
- not mix options with connection string (if done so)
- make sure your IP you are running on is whitelisted and your network allows connections to Atlas
- make sure the user has sufficient permissions
-
use the connection string as is provided by atlas and just provide it to
mongoose.connect(uri);