MongoDB and Mongoose - Install and Set Up Mongoose (Backend Development and APIs course)

My solution is not passing the tests despite connections to the database being made. I’m assuming connection is being made because it says so on the MongoDB website under my database.

Things I’ve already attempted:

  • I checked the URL I put on the .env in Secrets and I’m pretty sure it’s correct. I got the url by following the steps they put on the question.
  • I changed the dependency version of mongoose from its original 5.6.5 to 5.11.15 and installed the 5.11.15 version.
  • I also added a test to my code to print when connection has been made and print the mongoose version, and it passed both tests with expected results .

Could someone please tell me what’s wrong?

###Your project link(s)


project: boilerplate-express - Replit

[Code which doesn’t pass ]

Your browser information:

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

Challenge Information:

MongoDB and Mongoose - Install and Set Up Mongoose

You are not using the correct boilerplate. It should be this.

Sorry first post, this is it:

Please use the link I gave you for the starting code. You have to use the correct boilerplate that is linked in the initial step.

1 Like

OH right my bad it worked, thank you !!