pratvar
November 15, 2020, 10:10pm
1
Tell us what’s happening:
I have completed the project and it works but it’s not passing freeCodeCamp’s tests. I don’t understand the console messages, some help would be appreciated😅.
Your code so far
Here is my repl.it project.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36
.
Challenge: URL Shortener Microservice
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
Sky020
November 15, 2020, 10:17pm
2
Hello there,
NOTE : I highly recommend you not share your DB URI credentials. Make use of a .env
file.
Otherwise, please see one of these topics:
Hello there,
Thanks for bringing this up. I think since, you started the project, it has been updated. I have spotted a mistake in the tests, and am confirming it now:
Until this is resolved, I suggest you not use the dns library for any validation. This should allow you to pass the tests.
More details in my final reply:
Hello there,
Just to add: This challenge has recently been altered. Currently, the use of dns.lookup should not be used to achieve the functionality of the 4th user story.
dns.lookup is a hint to add as an optional extra, and works by (essentially) pinging a domain, and either returning a response or a bad gateway.
The 4th user story only expects the http|https format to be checked.
I hope this clarifies.
Hope this helps
pratvar
November 16, 2020, 10:29am
3
Oh, I didn’t realize haha. I have updated it to use a .env
file. Also I followed your advice and it’s passing all the tests now. Thank you for your help!