Can't connect to the cluster

Hi everyone,

I’m trying to connect to the cluster to solve Chapter 2. I type the following:

mongo "mongodb+srv://m001-student:m001-student@sandbox.iptmvok.mongodb.net/admin"

I get the following error:

*** You have failed to connect to a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.

Error: can't connect to a new replica set master [ac-2ujhcsi-shard-00-01.iptmvok.mongodb.net:27017], err: AuthenticationFailed: bad auth: Authentication failed. :
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1

What am I doing wrong? Can you help me?

Thanks

Bad auth means wrong combination of user id & password
Is your password correct?

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.