URL Shortener Microservice Feedback/help

Hello Freecodecamp community!

I don’t know why I am not passing the test for the URL Shortner Microservice project.

Here is my code Glitch :・゚✧

my console logs say that there is an error in require(‘mongoose’) line 29

Hello,

I noticed that you do not have the “mongoose” dependency in your file package.json.
Can you try adding it and see if it still gives you problems?

My PW in .env is written correctly. No quotations and spaces. It is written correctly. I made changes in line 87 and line 43. There is no errors on the logs now.

If I open the console, I see an error when the program starts. It says

UnhandledPromiseRejectionWarning: MongoError: password must be a string

The PW in the .env file must be written without quotes and without spaces otherwise it won’t work, can you check that it’s written correctly?

Tip: when debugging, try using the command console.log(your_variable) generously, logging the new piece of data (usually a variable) that you just calculated. In this way, you can see what your program does and intervene where you need to.

Happy coding!

It is written correctly.