Bad auth : Authentication failed. - Nodejs / MongoDB atlas

The < and > are not part of a valid URI. It is customary to surround parts that needs to be changed within the less-than and then greater-than signs. It is called a place holder. If, as you write, your user is atlasAdmin then the URI must reflect that rather than having MyUserName. Ditto for the MyPassword. It has to be the real password.

24 Likes