Tell us what’s happening:
I get all required responses (doing it without mongoose as it is not mandatory), however still have the problems for passing the tests. Could you please review my project? Your project link(s) URL shortener
I checked it with the correct domain format as you have described. Still no luck, checked the server with the postman post request using x-www-form-urlencoded, passes without any problem, however still no luck on freecodecamp test cases. Thanks for the time
Just so you know, the tests use your app’s URL to test the functionality: https://boilerplate-project-urlshortener.faridhuseynov.repl.co/<some_unique_number>
Also, the dns.lookup will fail as well. Create a simple Nodejs repl and test the URL you get back from the split. Look at the URL, it has to just be the host name (and nothing more).