Back End Development and APIs Projects - URL Shortener Microservice

Tests Two and Three Fail but Work When Tested Manually

Is anybody able to tell me why my replit isn’t passing the tests please? When I manually test them they seem to work fine but it is failing tests two and three of the challenge.

solution: boilerplate-project-urlshortener - Replit

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

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Back End Development and APIs Projects - URL Shortener Microservice

It is the validation.

log out what is on the body and check that you are giving dns.lookup the correct argument (hostname only).

'https://boilerplate-project-urlshortener.simpson9955.repl.co/?v=1668624158297'.slice(8)
'boilerplate-project-urlshortener.simpson9955.repl.co/?v=1668624158297'

new URL('https://boilerplate-project-urlshortener.simpson9955.repl.co/?v=1668624158297').hostname
'boilerplate-project-urlshortener.simpson9955.repl.co'

Sorry for the late reply. Thanks for your help with this! Helped me pass the challenge.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.