Connection failure

Bonjour,

I can’t connect to the cluster. I tried many times and the same error tthat I can’t resolve:

I use this url:
mongo “mongodb+srv://sandbox.wtswn.mongodb.net/sample_training” --username m001-student --password m001-mongodb-basics

And I have this errors:

2020-11-30T07:25:27.862+0000 I NETWORK [js] Marking host sandbox-shard-00-00.wtswn.mongodb.net:27017 as failed :: caused by :: SocketException: can’t authenticate against replica set node sandbox-shard-00-00.wtswn.mongodb.net:27017 :: caused by :: socket exception [CONNECT_ERROR] server [sandbox-shard-00-00.wtswn.mongodb.net:27017] connection pool error: network error while attempting to run command ‘isMaster’ on host ‘sandbox-shard-00-00.wtswn.mongodb.net:27017
2020-11-30T07:25:28.409+0000 I NETWORK [js] Marking host sandbox-shard-00-01.wtswn.mongodb.net:27017 as failed :: caused by :: Location40659: can’t connect to new replica set master [sandbox-shard-00-01.wtswn.mongodb.net:27017], err: Location8000: bad auth : Authentication failed.
2020-11-30T07:25:28.409+0000 E QUERY [js] Error: can’t authenticate against replica set node sandbox-shard-00-01.wtswn.mongodb.net:27017 :: caused by :: can’t connect to new replica set master [sandbox-shard-00-01.wtswn.mongodb.net:27017], err: Location8000: bad auth : Authentication failed. :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

Have you any suggestions.

I’m french and I use Google for the translation, sorry if my english is no good.

bad authentication means wrong combination of userid and password
Your password seems to be wrong
What did you register your password as when creating the Sandbox cluster?

Thanks for your reply.
I changed the password my database and it works now. :slightly_smiling_face: