MongoDB: Handling and logging errors

Even after stopping the mongodb daemon, the request in Postman is hanging infinitely.


  1. Start mongodb daemon
  2. Start node server
  3. GET request on genres(works as expected)
  4. Stop mongodb daemon
  5. GET request on genres(hangs infinitely and does not timeout after 30secs as shown in the course)

My `package.json dependencies:
“dependencies”: {
“bcrypt”: “^5.0.0”,
“config”: “^3.3.3”,
“express”: “^4.16.2”,
“fawn”: “^2.1.5”,
“joi”: “^13.1.0”,
“joi-objectid”: “^3.0.1”,
“jsonwebtoken”: “^8.5.1”,
“lodash”: “^4.17.20”,
“mongoose”: “^5.11.7”

I am also facing the same issue. Did you get to know how to resolve it?