Unable to Connect to IDE for chapter 2 even after correct password

Hi Team,

Getting below error

Error: can’t connect to new replica set master [sandbox-shard-00-01.qi8os.mongodb.net:27017], err: AuthenticationFailed: bad auth : Authentication failed. :
exception: connect failed
exiting with code 1

connection string : mongo “mongodb+srv://sandbox.qi8os.mongodb.net/myFirstDatabase” --username m001

I am entering correct password but still unable to connect

Bad authentication means wrong combination of user & password
Is your user m001 correct?
It should be m001-student

Hi @Ramachandra_Tummala

Is your user m001 correct? > yes

I have completed chapter 1 Lab with same details

@Brijesh_Verma, if you have created user m001 rather than m001-student, then it means you have not followed the instructions. It is really really hard, almost impossible, to help you.

In chapter 1, they ask to connect to a completely different cluster as the connection string was mongodb+srv://m001-student:m001-mongodb-basics@cluster0-jxeqq.mongodb.net/test.

The cluster sandbox.qi8os.mongodb.net seems to be a valid Atlas cluster. But if your username m001 (but from the instructions is should be m001-student) and password (m001-mongodb-basics as required) does not work, then best thing you can do is to start over. We cannot recover the username or password you created.

Follow the instructions to the letter and it will work. Do not change anything to try to hide you free cluster or username from us unless your really know what you are doing.

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