It is Giving an error related o bad auth, I’ve chagned and updated the user many times
process.env.MONGO_URI='mongodb+srv://ak:<abc123>@cluster0.uco2m.mongodb.net/<Cluster0>?retryWrites=true&w=majority'
mongoose.connect(process.env.MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true });
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0
.
Challenge: Install and Set Up Mongoose
Link to the challenge:
Hello!
You must replace the <username>
, <password>
and <dbname>
with your actual values, removing the <
and >
(unless they’re present in your password).
So, if your data credentials are:
username: ak
password: 123456
database name: my_project
Your connection string would be:
mongodb+srv://ak:123456@cluster0.uco2m.mongodb.net/my_project?retryWrites=true&w=majority