Tell us what’s happening:
Describe your issue in detail here.
I am getting timeout I can’t understand it. I am new to js.
I have tried with connection to MongoDB Compass and without it but the same result
Your app is listening on port 3000
GET
MongooseError: Operation people.insertOne()
buffering timed out after 10000ms
at Timeout. (/home/runner/freecodecamp-mongomongoose/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7)
GET
mongodb is connected
MongooseError: Operation people.insertOne()
buffering timed out after 10000ms
at Timeout. (/home/runner/freecodecamp-mongomongoose/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7)
Your project link(s)
solution: freecodecamp-mongomongoose - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Challenge: MongoDB and Mongoose - Create and Save a Record of a Model
Link to the challenge: