URL Shortener Challenge (last tests fails)

Tell us what’s happening: I am already able to parse the URL and redirect to the page but even though I get the error handling correct the last test still fails?

I tried comparing the result to the completed one by using www.freecodecamp.org (Bad URL) and my work outputs Invalid URL correctly but the test fails.

Your project link(s)

solution: https://boilerplate-project-urlshortener-1.roycechua23.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:86.0) Gecko/20100101 Firefox/86.0.

Challenge: URL Shortener Microservice

I would appreciate the help.

The last test is tested with
url "ftp://john-doe.org"
and your code thinks it’s a valid url.

Thanks a lot for the help, I’ll think about this.

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