I just created an Atlas Cluster as defined in Chapter 2, Lab 2. Added whitelist entry and the user and still unable to connect. I can connect to the class cluster used in Chapter 1. I have also enoded the password properly for the new cluster.
On the command line, I get authentication error whereas using Compass I get a timeout error as shown below, respectively.
It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network. 2020-01-04T18:58:27.312+0500 E QUERY [js] Error: Authentication failed. : connect@src/mongo/shell/mongo.js:341:17 @(connect):2:6 2020-01-04T18:58:27.318+0500 F - [main] exception: connect failed 2020-01-04T18:58:27.318+0500 E - [main] exiting with code 1
I am using Ubuntu 19.10, Mongo v4.2.2, and Compass 1.20.4 stable. I’ll be glad if someone could help me out here.