Test failing on nextJS app

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 with original_url and short_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:

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