MongoDB and Mongoose - Create and Save a Record of a Model

Tell us what’s happening:
tests are getting timedout. pls advise.

Your project link(s)

solution: boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: MongoDB and Mongoose - Create and Save a Record of a Model

Link to the challenge:

any suggestions pls?

What output are you getting in your console?

Not sure what is going on, Replit is installing the wrong version of the dependencies.

  1. Open the Shell tab next to the console tab below the preview window.

  2. From the Shell tab run npm rm mongoose && rm mongo

  3. From the Shell tab run npm i mongoose@5.11.15 -E

  4. You have to remove this document.getElementById("content").innerHTML=data; from the route handler. Node.js is not the browser and you do not have access to the browser web APIs.

  5. Run the Replit and try the submit again, it should work now.


Edit: I just tried replicating it again using a fork of your project and it failed.

But if I start a new boilerplate and just copy and paste your code in (with my own DB) it passes the tests. So I’m not sure what is going on.

it passed - thank you so much !!

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