Am failing to pass the URL Shortener Microservice

Tell us what’s happening:
Describe your issue in detail here.
Am failing to pass the URL Shortener Microservice, i have passed all test except the url redirection test

When i check in my dev tools while submitting the test, somehow the freecodecamp test submissions prefix the duplicate route
Screenshot from 2021-12-11 11-25-32

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: URL Shortener Microservice

Link to the challenge:

When you visit /api/shorturl/<short_url> , you will be redirected to the original URL

you should return just short_url value
like 7K6QfMk1A

and your final response should look like this

but you are returning

so when fcc is testing api the visit this url and result in test failure

fix this when you are saving newURL

Thanks man you’re a life saviour

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