Tell us what’s happening:
Describe your issue in detail here.
Your project link(s)
solution: boilerplate-project-urlshortener - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Challenge: Back End Development and APIs Projects - URL Shortener Microservice
Link to the challenge:
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
Look in the network tab when you do the submission, you are always returning {"error":"Invalid url"}
I didn’t really look much at the package docs but I do see this.
This function only works for fully-qualified URIs. /bob.html won’t work.
Payload:
https://boilerplate-project-urlshortener.eduardorosa11.repl.co/?v=1677708297277
Thank you very much, the error was in the is-url
version