Install and Set Up Mongoose Challenge

Install and Set Up Mongoose
I can’t pass this challenge. I’ve tried multiple times looking to be sure my secret variable is added properly and inserted into the app. Also that my IP is correct.

Your project link(s)

solution: https://replit.com/@loral/boilerplate-mongomongoose

safari and chrome

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15

Challenge: Install and Set Up Mongoose

Link to the challenge:

Use mySecret inside mongoose.connect.

If the key is 'MONGO_URL', i.e. process.env['MONGO_URL'] it can’t also be mySecret i.e. process.env.mySecret. It’s one or the other depending on what you actually named the key.

const mySecret = process.env['MONGO_URL']

mongoose.connect(mySecret, {
  useNewUrlParser: true,
  useUnifiedTopology: true
})

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