Tell us what’s happening:
I can’t pass the last test, " 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' }
", even though the response is clearly a JSON object that contains the exact error message required by the test. I’m not receiving any kind of errors.
Your code so far
https://repl.it/@notrabe/boilerplate-project-urlshortener#server.js
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
.
Challenge: URL Shortener Microservice
Link to the challenge: