What link should I use as my solution?

Tell us what’s happening:

I have connected to the MongoDB.

Screenshot from 2020-09-01 23-12-21

When I pasted the link to the glitch, all tests are failed.

I pressed f12 and look at the network tab in chrome and see the url as below.

What link should I use as my solution?

Here is the link to my glitch: https://glitch.com/~shocking-judicious-stock

User Agent is: Chrome/84.0.4147.125.

Challenge: Install and Set Up Mongoose

Link to the challenge:

share -> live app

you need to submit the live app link

Screenshot from 2020-09-01 23-42-01

I already did it, but still error.

while trying to open glitch, I get a 502 or 504 error right now - sometimes the issue is just glitch. That’s why freeCodeCamp has moved to repl.it

1 Like

I tried replit but still got an error.

Screenshot from 2020-09-02 17-37-27

Here is the link to my replit: https://repl.it/@Nhat_AnhAnh/fcc-mongodb

I do not see that
I see an error when running tho:

DB Connection Error: The uri parameter to openUri() must be a string, got “undefined”. Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.

I can’t help you as I have no experience with mondodb

1 Like

I stored the URI in .env file so you couldn’t see it. Could you try to run it again?

I don’t have much experience with the challenge you linked but from network standpoint you are getting a 404 error (the network screenshot )
The server in glitch It’s not able to identify your URL.
There might be a small typo or something have you checked for those ?

1 Like

From your point, I took a look at network tab again and figured out that I used the wrong template. I fixed it. Thanks.
It should be: https://github.com/freeCodeCamp/boilerplate-mongomongoose

1 Like