Stuck on verification

Tell us what’s happening:
I’m trying to check my code, but it only pass 1st and 4th tests. I double checked API url and I even test it in other browser tab and I think it works as challenge specifies, all url’s are in the form "protocol (http, https, ftp, etc) + hostname (allowing last ‘/’ but not storing it) and then resolved with dns.lookup. Then it checks if it exists in DB (mongodb) and respond JSON with new or existing item as challenge requires ( in my case y use shortid module for short_url)

Is there anything I’m missing?

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Challenge: URL Shortener Microservice

Link to the challenge:

When I look in the dev tools, network tab, from your app, when I try to send it this url:

I get this response:

{"error":"invalid URL"}

Ok, so I think that was my mistake, I presupposed the format that the challenge expect was just “protocol + hostname” but without path. Thanks a lot for your help.

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