Tell us what’s happening:
When trying to complete thee challenge it fails 3 over the 4 tests although the app works properly
-
Failed:You can POST a URL to
/api/shorturl
and get a JSON response withoriginal_url
andshort_url
properties. Here’s an example:{ original_url : 'https://freeCodeCamp.org', short_url : 1}
-
Failed:When you visit
/api/shorturl/<short_url>
, you will be redirected to the original URL. -
Failed:If you pass an invalid URL that doesn’t follow the valid
http://www.example.com
format, the JSON response will contain{ error: 'invalid url' }
Your project link(s)
solution: https://short-url-six-sigma.vercel.app
githubLink: https://github.com/robdll/short-url
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Challenge: URL Shortener Microservice
Link to the challenge: