I can't see where's my problem in Mongoose connection

Tell us what’s happening:

I can’t see where’s my problem in Mongoose connection

Your code so far

Your browser information:

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

Challenge: Install and Set Up Mongoose

Link to the challenge:

Hello there,

Would you mind sharing a link to your project code? Also, do you see any errors in the Repl.it console?

1 Like

thank you for your reply. and so sorry i didn’t below is my work.


Are you sure you created a .env file, and added the correct variable to it, with the correct password?

NOTE: .env files are hidden from public view, so I cannot tell. Also, be sure to not share your DB password.

  • You’re including the URI in sample.env.
  • Instead, rename it to .env

thank you @Minsky, but it still doesn’t work.

Comment out the dotenv press start, and check again. And please, include the error if any.

To be clear, you’re doing quite ok, but sometimes the learning is in debugging how FCC is checking stuff.

how to add my password in my .env file?