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
{{ message }}
This repository has been archived by the owner on May 28, 2021. It is now read-only.
I'm getting following error when I run: $ npm start
{"message":"Default posts created!","level":"info"}
{"message":"MongoError: Topology was destroyed\n at initializeCursor (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb-core/lib/cursor.js:766:25)\n at nextFunction (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb-core/lib/cursor.js:591:12)\n at Cursor.next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb-core/lib/cursor.js:833:3)\n at Cursor._next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/cursor.js:211:36)\n at nextObject (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/operations/cursor_ops.js:179:10)\n at next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/operations/cursor_ops.js:158:3)\n at executeOperation (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:420:24)\n atCursor.next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/cursor.js:253:10)\n at findOne (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/operations/collection_ops.js:567:10)\n at /home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:437:24\n at new Promise (<anonymous>)\nat executeOperation (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:432:10)\n at Collection.<anonymous> (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/collection.js:1028:12)\n at Collection.deprecated [as findOne] (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:652:17)\n at withCallback.collectionReady.then.collection (/home/user/workspace/ExpressJS/test_project_10/node_modules/connect-mongo/src/index.js:192:46)\n at process._tickCallback (internal/process/next_tick.js:68:7)","level":"error"}
Error: req.flash() requires sessions
at IncomingMessage._flash [as flash] (/home/user/workspace/ExpressJS/test_project_10/node_modules/connect-flash/lib/flash.js:60:41)
at ServerResponse.res.render (/home/user/workspace/ExpressJS/test_project_10/node_modules/express-flash/lib/express-flash.js:28:35)
at /home/user/workspace/ExpressJS/test_project_10/server/routes/errors.js:20:15
at Layer.handle_error (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:315:13)
at /home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:335:12)
at next (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:315:13)
at /home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:335:12)
at next (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:315:13)
at /home/user/workspace/ExpressJS/test_project_10/node_modules/express/lib/router/index.js:284:7
{"message":"\u001b[0mGET / \u001b[31m500 \u001b[0m4.233 ms - -\u001b[0m\n","level":"debug"}
{"message":"MongoError: Topology was destroyed\n at initializeCursor (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb-core/lib/cursor.js:766:25)\n at nextFunction (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb-core/lib/cursor.js:591:12)\n at Cursor.next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb-core/lib/cursor.js:833:3)\n at Cursor._next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/cursor.js:211:36)\n at nextObject (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/operations/cursor_ops.js:179:10)\n at next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/operations/cursor_ops.js:158:3)\n at executeOperation (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:420:24)\n atCursor.next (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/cursor.js:253:10)\n at findOne (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/operations/collection_ops.js:567:10)\n at /home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:437:24\n at new Promise (<anonymous>)\nat executeOperation (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:432:10)\n at Collection.<anonymous> (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/collection.js:1028:12)\n at Collection.deprecated [as findOne] (/home/user/workspace/ExpressJS/test_project_10/node_modules/mongoose/node_modules/mongodb/lib/utils.js:652:17)\n at withCallback.collectionReady.then.collection (/home/user/workspace/ExpressJS/test_project_10/node_modules/connect-mongo/src/index.js:192:46)\n at process._tickCallback (internal/process/next_tick.js:68:7)","level":"error"}
The text was updated successfully, but these errors were encountered:
I'm getting following error when I run:
$ npm start
The text was updated successfully, but these errors were encountered: