I am unable to connect to Atlas MongoDB via mongo cli. An attempt to do so gives back Error: can’t authenticate against replica set node mflix-shard-00-00-4zjru.mongodb.net:27017 :: caused by :: can’t connect to new replica set master [mflix-shard-00-00-4zjru.mongodb.net:27017], err: Location8000: bad auth Authentication failed. :
connect@src/mongo/shell/mongo.js:343:13
I don’t know where I am getting it wrong. Please help.
Thanks @Noberto, I have fixed the problem by correcting the URI in application.properties.
1 Like