trulymittal / short-url-nodejs-mongodb

This is an example of how to make a application which shortens the url entered by the client.
6 stars 8 forks source link

Operation `shorturls.findOne()` buffering timed out after 10000ms #1

Open AsherCarneiro opened 2 years ago

AsherCarneiro commented 2 years ago

Hey, I'm trying to run this on localhost and this error is popping up also in terminal i get this:

error connecting to mongoose
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
Server is running on port 3000
error connecting to mongoose

Any Idea who I could run this or how to solve this error...I do have mongodb installed and also all dependencies.

shubh-ummm commented 5 months ago

Hey, I'm trying to run this on localhost and this error is popping up also in terminal i get this:

error connecting to mongoose
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
Server is running on port 3000
error connecting to mongoose

Any Idea who I could run this or how to solve this error...I do have mongodb installed and also all dependencies.

Remove the useCreateIndex: true, this will fix the issue