My app was behaving as specified as far as I can tell, but I wasn’t able to pass the FCC tests. I finally passed the tests after finding the solution mentioned in this thread.
The solution is simply not to use the dns lookup. If this is still the case (seems like it since I passed the tests after not doing dns lookup), then updating the Hint that explicitly mentions about the use of dns.lookup would be very helpful.
Thank you for your help. So, I must be doing something wrong with the dns lookup. I’m not getting the error messages I was getting before in my repl.it console, but still not passing the tests.
Ah! Of course. I wasn’t thinking at all about the other stuff like port, path, and search params that could be part of a passed url. I completed the project using new URL(req.body.url)