Tell us what’s happening:
I have tried nearly everything and looked at the hints and I can
t get the final test to pass. I’m wondering if it has to do with mongoDB Atlas database. I cloned from Github where my username is joetags but my username is different in MongoDb atlas. I have tried both usernames and neither work. I tried disabling my VPN in case that was the reason.
The sample.env file does nothing in your app. It is merely there as a reference for other developers to get an idea of the environment variables they might need to use. Environment variables should be stored in a .env file - On Replit, this is done through the SECRETS tab.
MongoDB, Replit, and the freeCodeCamp tests do not care about your usernames - they can be whatever you want.
The console is your best friend - do you see any errors?
Well, if you are still seeing the error in the console, then it is an issue with your URI, and the best thing to do would be to go back to your Atlas dashboard, and copy the connection string again.
In the help section of this lesson it shows this correct path under problem explanation but then it also shows the path that mongodb has the user copy under Hint #2.
Now for the real question! Why does the one work and not the other? And how would I have figured this out without the correct path being in the hint section? Thank you again.