Back End Development and APIs Projects - URL Shortener Microservice

Tell us what’s happening:

Hi, my code seems to work properly locally( when tested manually in the browser and in Insomnia) but tests 2 and 3 fail for some unknown reason. Any help would be appreciated.
Link the project: GitHub - danielHava/boilerplate-project-urlshortener: A boilerplate for a freeCodeCamp project.

###Your project link(s)

solution: http://localhost:3000

githubLink: GitHub - danielHava/boilerplate-project-urlshortener: A boilerplate for a freeCodeCamp project.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0

Challenge Information:

Back End Development and APIs Projects - URL Shortener Microservice

Log out urlString and isValidUrl(urlString) in the route handler and submit to run the tests. See what the payload is and if you are validating it correctly.

You can also inspect the request/response using browser dev tools (network tab).

Thanks for the tip, the isValidUrl function was borked…