I have gotten all the functionalities done for the URL shortener microservice project, but still have tests #2 and #3 not working
This is a link to my project code :
I have gotten all the functionalities done for the URL shortener microservice project, but still have tests #2 and #3 not working
This is a link to my project code :
I last check your server with urlX = yahoo.com in req.body and it returned “invalid url”, may be the url checker is incorrect? yahoo.com is a valid url right? but cannot check further because I can’t start up the replit don’t know why.
Yes it is a valid url, but if you test it with the proposed project by freecodecamp (https://url-shortener-microservice.freecodecamp.rocks/) it will also give “invalid URL”
Allright, I continue my testing and compare your replit with fcc replit, here are the comparison:
fcc result:
your result:
fcc response:
your response:
fcc use testing, the computer test your code, so difference in 1 character is considered incorrect by computer, be sure the format is correct, the field name is correct, etc,
I think this is my best guess,
Hope this help.
Yes I think the slash (/) that is being put at the end of the URL is the problem, you are right. Concerning why I am using urlObject, that is because dns.lookup method does not accept a regular URL string (as far as I know).
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.