expressjs / express

Fast, unopinionated, minimalist web framework for node.
https://expressjs.com
MIT License
65.22k stars 15.68k forks source link

[as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5) #3315

Closed vkupar closed 7 years ago

vkupar commented 7 years ago

Here's error message of my MEAN Application. I don't know how and why this happened. Can you explain, when this error occurs to find and prevent it...

[as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at next (/var/app/current/node_modules/express/lib/router/route.js:110:13)
at Route.dispatch (/var/app/current/node_modules/express/lib/router/route.js:91:3)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at /var/app/current/node_modules/express/lib/router/index.js:267:22
at param (/var/app/current/node_modules/express/lib/router/index.js:340:14)
at param (/var/app/current/node_modules/express/lib/router/index.js:356:14)
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:400:3)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at Function.proto.handle (/var/app/current/node_modules/express/lib/router/index.js:166:3)
at router (/var/app/current/node_modules/express/lib/router/index.js:35:12)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.defineUserInfo (/var/app/current/helpers/middlewares.js:54:12)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.tokenCheck (/var/app/current/helpers/middlewares.js:215:20)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7 status: 404 }

And this is second example, when error occured:

t Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at next (/var/app/current/node_modules/express/lib/router/route.js:110:13)
at Route.dispatch (/var/app/current/node_modules/express/lib/router/route.js:91:3)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at /var/app/current/node_modules/express/lib/router/index.js:267:22
at param (/var/app/current/node_modules/express/lib/router/index.js:340:14)
at param (/var/app/current/node_modules/express/lib/router/index.js:356:14)
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:400:3)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at Function.proto.handle (/var/app/current/node_modules/express/lib/router/index.js:166:3)
at router (/var/app/current/node_modules/express/lib/router/index.js:35:12)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.defineUserInfo (/var/app/current/helpers/middlewares.js:54:12)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.tokenCheck (/var/app/current/helpers/middlewares.js:215:20)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7 status: 404 }

And this is third example of related error:

ent/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.tokenCheck (/var/app/current/helpers/middlewares.js:215:20)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7 status: 404 }

And this is fourth and last related error :D :

les/express/lib/router/route.js:110:13)
at Route.dispatch (/var/app/current/node_modules/express/lib/router/route.js:91:3)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at /var/app/current/node_modules/express/lib/router/index.js:267:22
at param (/var/app/current/node_modules/express/lib/router/index.js:340:14)
at param (/var/app/current/node_modules/express/lib/router/index.js:356:14)
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:400:3)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at Function.proto.handle (/var/app/current/node_modules/express/lib/router/index.js:166:3)
at router (/var/app/current/node_modules/express/lib/router/index.js:35:12)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.defineUserInfo (/var/app/current/helpers/middlewares.js:54:12)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7
at Function.proto.process_params (/var/app/current/node_modules/express/lib/router/index.js:321:12)
at next (/var/app/current/node_modules/express/lib/router/index.js:261:10)
at module.exports.tokenCheck (/var/app/current/helpers/middlewares.js:215:20)
at Layer.handle [as handle_request] (/var/app/current/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/var/app/current/node_modules/express/lib/router/index.js:302:13)
at /var/app/current/node_modules/express/lib/router/index.js:270:7 status: 404 }
blakeembrey commented 7 years ago

@vatex You will probably need to share the full stack trace for someone to be able to help you. It looks like you've trimmed the beginning from them all, so I couldn't tell if it's coming from your code or not. At least all the current stack trace just points to it being an error that related to a request.

vkupar commented 7 years ago

Sorry, It's just "404 not found" error code :/