Back End Development and APIs Projects - URL Shortener Microservice

Tell us what’s happening:

I genuinely have no idea why this isn’t passing, because it seems to be working fine for everything I’ve tried. I know my code is sloppy but to be fair most of the lessons for this section seemed to be outdated.

This keeps coming up for I think the 2nd test but I’m not sure how its even getting to that point without getting a short_url number:
CastError: Cast to Number failed for value “NaN” (type number) at path “short_url” for model “ShortUrl”

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/118.0.0.0 Safari/537.36 Edg/118.0.2088.69

Challenge Information:

Back End Development and APIs Projects - URL Shortener Microservice

your replit is passing this lesson…
remove add blockers or change the browser…

I literally just now fixed it. The test had stuff after the .co that was stopping the dns.lookup from working.

1 Like