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”
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/188.8.131.52 Safari/537.36 Edg/118.0.2088.69
Back End Development and APIs Projects - URL Shortener Microservice