Watch keynotes and sessions from, our virtual developer conference.

Connection sasl conversation error(authentication error) while using mongoexport

I am trying to export data from mongodb atlas to my computer, using my URI connection string, but am getting the error: could not connect to server: connection() : auth error: sasl conversation error: unable to authenticate using mechanism “SCRAM-S HA-1”: (AtlasError) bad auth Authentication failed

This is the command I am using:

mongoexport --uri="mongodb+srv://yash_verma:<******>" --collection=entries --out=entries.csv 

Could anyone tell me what it is that I am doing wrong? I am sure I am using the correct password.

I am also fairly new to programming and have tried to look online for a solution, but haven’t found one yet.

Any help would be greatly appreciated.

Thanks, Yash.