Error: can't authenticate against replica set

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 :: caused by :: can’t connect to new replica set master [], err: Location8000: bad auth Authentication failed. :
I don’t know where I am getting it wrong. Please help.

Hi @Dannie,

Have you set the ip whitelisting to include your ip address?


Thanks @Noberto, I have fixed the problem by correcting the URI in

1 Like