Back End Development and APIs Projects - URL Shortener Microservice

Tell us what’s happening:
My code is working in VS code, browser and data is also getting stored in MongoDB
but not passing in the 3rd filter
" When you visit /api/shorturl/<short_url> , you will be redirected to the original URL."

Your code so far
My github repo link

Your browser information:

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

Challenge: Back End Development and APIs Projects - URL Shortener Microservice

Link to the challenge:

Did you fix it? The code is passing for me. But it has to be a public URL for the final submission.

BTW, you should not commit your .env file it has your DB credentials. Remove it from Git and the repo and create new credentials.

Now that i have tried, the test is passed without changing anything in the code. And for the .env folder, thanks for reminding me. Thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.