Replit seems to connect to database but unable to pass challenge

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36

Challenge: Install and Set Up Mongoose

Link to the challenge:

Your code passes for me with my own DB. Do you get any errors in the console? You can try adding a catch to the connect call.

mongoose.connect(MONGO_URI, { useNewUrlParser: true, useUnifiedTopology: true })
  .catch(error => console.log(error));

How did you add the connection string?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.