3 total, 2 passed, 0 skipped:
[PASS] “Successfully connected to the Atlas Cluster”
[FAIL] “The cluster name is Sandbox”
Did you name your Atlas cluster Sandbox?
[PASS] “The username is m001-student”
I did some testing and think I figured out the problem. I am pretty sure it is a bug.
When creating the Project M001 the first cluster you create inside has to be the cluster named Sandbox.
If you create the Project and then create any other cluster inside the test fails. Even if you delete the cluster again and only have the Sandbox cluster present.
I have tested this and I am able to recreate the issue.
I have tried @Ramachandra_37567 idea of using the –username option rather than putting the username and password in the connection string and it works.
I get this error while running above command. Please advise
bash-4.4# mongo “mongodb+srv://sandbox.xyz.mongodb.net” --username m001-student --password m001-mongodb-basics
DNSProtocolError: No SRV records for “_mongodb._tcp.sandbox.xyz.mongodb.net”
try ‘mongo --help’ for more information