MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening:
Describe your issue in detail here.

Hola , estoy necesitando ayuda ya que no consigo poder pasar la primera parte debido a este error,

callback(new MongoError(document));

MongoError: bad auth : Authentication failed.
at MessageStream.messageHandler (/home/runner/boilerplate-mongomongoose-2/node_modules/mongodb/lib/cmap/connection.js:299:20)

Your project link(s)

solution: boilerplate-mongomongoose (2) - Replit

ya cheeque que la password se encuentre bien escrita, ala vez que el usuario, y que no este incumpliendo en los criterios para su creacion, tiene los permisos de escritura, pero no se que mas hacer, desde ya muchas gracias

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0

Challenge: MongoDB and Mongoose - Install and Set Up Mongoose

Link to the challenge:

That error is usually caused by an incorrect password or username. I know you say you have checked it but I’m guessing it is still wrong.

For the password make sure you did not include the <> part of the placeholder text.

Post your connection string, but change the password so you do not leak it.

Thanks, I generated a new db and it worked

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.