MongoDB and Mongoose - Install and Set Up Mongoose

Tell us what’s happening
For the past two days, I have been tiring to pass this lesson but I am still finding it difficult to.
Whenever I run my webview, I get this error in my console

Your project link(s)

solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 OPR/

Challenge: MongoDB and Mongoose - Install and Set Up Mongoose

Link to the challenge:

Did you add the required environment variable and value to the Secrets section?


Also, make sure not to put the connection string inside a string when adding the key/value to Secrets. It will become a double-quoted string if you do (as far as I remember).


See my code here!

Well, that is the only thing you might be missing because your code passes fine for me when I add the applicable secret.

MongoDB is trying to connect to the URI you provided, but it is not valid. Check if you filled out the and fields in the URI. If that does’nt work then go back to mongodb and recopy the link