You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am learning MongoDB from your course. I am at the section Mongodb and promises. In the video connecting and inserting the documents you had used MongoClient to conneect to the Database.
I had followed all the same steps
installed MongoDB and placed them in appropriate folder
Ran mongod before running the js file
Wrote the code in js exactly as mentioned in the video
I tried downgrading mongodb, node, npm package still the issue persists. I see alot is stack over flow links and MongoDB community pages with same issue but no perfect resolution.
Could you please help me out as it is blocking the next steps in the course.
Hello Andrew,
I am learning MongoDB from your course. I am at the section Mongodb and promises. In the video connecting and inserting the documents you had used MongoClient to conneect to the Database.
I had followed all the same steps
ISSUE:
When I run the js file the terminal is not printing success message and the terminal is stuck. I see the mongod as request is being made as below,
I there is no error and no response and no database being created as well.
MongoDB Version: 7
Node Version: v18.14.2
Mongodb npm package version: ^6.3.0
I tried downgrading mongodb, node, npm package still the issue persists. I see alot is stack over flow links and MongoDB community pages with same issue but no perfect resolution.
Could you please help me out as it is blocking the next steps in the course.
https://stackoverflow.com/questions/21848406/mongodb-node-js-client-connect-hangs
https://www.mongodb.com/community/forums/t/code-hangs-on-connection/219900/3
The text was updated successfully, but these errors were encountered: