Tell us what’s happening:
Everything is perfect, but freecodecamp insists on evaluating with error
Your project link(s)
solution: Glitch :･ﾟ✧
Your browser information:
User Agent is:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 OPR/77.0.4054.80
Challenge: URL Shortener Microservice
Link to the challenge:
It’s not just the fCC tests. I dropped
http://www.cnn.com in your glitch and it responded with a 401 error. All the fCC tests said the same thing in the browser console. I would be suspicious of the validity check in your route that returns a 401 at this point. So I don’t think the fCC tests are to blame (they still work on my project).
Of course, it could be a glitch problem. Before looking, I would have bet on CSP/XSS/CORS problem. I would start by logging the route inputs and outputs to the console and running the fCC tests against your project. Just make sure you log where the origin of the output too (i.e. invalid url, good url, etc.).
I think it is because you changed the
name value on the form
input. Try using
url instead of
url_input for the
name attribute value.
I tested the URL validator lib and it seems to work just fine.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.