Cannot pass challenge for url shortener microservice project

Tell us what’s happening:
cannot pass two of the tests here out of the 4 tests. Trying to figure out whats wrong with my code.
kindly delete my previous post for the same problem as I was unable to post my file link in there and unable to delete my previous thread as well.
Your code so far
Here is my link

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; SM-A107F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.111 Mobile Safari/537.36.

Challenge: URL Shortener Microservice

Link to the challenge:

Hello there,

When you post the links, you need to wrap them in backticks like this:


This prevents the preview from appearing, and hiding the link.

Thank you.

Hi! Is your server successfully able to connect to the MongoDB instance? I would guess that it might be failing there, which would cause the POST route to hang and the second test to fail. Check your console and see that there are no connection errors; make sure you are stopping and restarting your service if you are changing anything in the .env file, as it’s only read once at startup.

For the third test, you can see that there is an undefined variable causing a ReferenceError by trying to navigate to the GET route e.g.

Hope that helps!

Looking through your code, it looks like your MongoDB url maybe the problem. I cant find any sites with Where did you setup your DB at?

I had set it up at mongo db atlas and i was able to pass the mongoose challenge earlier in this microservice projects . wonder why its not working now.

in my mongo db set up it shows that my mongo uri link is connected.

Alright. noted with thanks