Help, I've completed the task but can't pass 2 tests in url shortener

I’ve been working on this for days, trying different things but I still couldn’t pass test 2 & 3. Seems to me that the tests should pass but it doesn’t. Replit code is here. Any help is much appreciated!

**Update- I got some help and finally passed the test :slight_smile:
Dns cannot accept anything with /sometext at the end of the url, which is built into the project test. So to get the correct hostname, use

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Challenge: URL Shortener Microservice

Link to the challenge:

It seems to be working now. You got it working?

Hi! Yes i got it to work, finally!

1 Like

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