Created
March 23, 2022 19:32
-
-
Save mattdimicelli/cd98979f51f213bf6e2d44625d7877be to your computer and use it in GitHub Desktop.
error message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server Listening on port 4000 +0ms | |
app Connected to MongoDB +485ms | |
/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/bson/lib/error.js:41 | |
var _this = _super.call(this, message) || this; | |
^ | |
BSONTypeError: Argument passed in must be a string of 12 bytes or a string of 24 hex characters | |
at new BSONTypeError (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/bson/lib/error.js:41:28) | |
at new ObjectId (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/bson/lib/objectid.js:65:23) | |
at ObjectId (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/bson/lib/objectid.js:25:20) | |
at exports.itemGet (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/controllers/itemController.js:20:31) | |
at Layer.handle [as handle_request] (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/express/lib/router/layer.js:95:5) | |
at next (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/express/lib/router/route.js:137:13) | |
at Route.dispatch (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/express/lib/router/route.js:112:3) | |
at Layer.handle [as handle_request] (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/express/lib/router/layer.js:95:5) | |
at /home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/express/lib/router/index.js:281:22 | |
at param (/home/mrd2689a/Documents/the_odin_project/Express_MongoDB_Supermarket_Inventory_2/node_modules/express/lib/router/index.js:354:14) | |
[nodemon] app crashed - waiting for file changes before starting... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment