Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'authorization' of undefined #7

Open
unionolivia opened this issue Jan 7, 2017 · 1 comment
Open

Comments

@unionolivia
Copy link

unionolivia commented Jan 7, 2017

Please this is the response i receive on trying to submit on localhost:3000/new-event when a user has login. Is anything wrong with the 'authorization' in /server/middlewares/authenticate.js.
Please help me out.

TypeError: Cannot read property 'authorization' of undefined
at exports.default (/home/union/onegram/server/middlewares/authenticate.js:9:33)
at Layer.handle [as handle_request] (/home/union/onegram/node_modules/express/lib/router/layer.js:95:5)
at next (/home/union/onegram/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/home/union/onegram/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/union/onegram/node_modules/express/lib/router/layer.js:95:5)
at /home/union/onegram/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/home/union/onegram/node_modules/express/lib/router/index.js:330:12)
at next (/home/union/onegram/node_modules/express/lib/router/index.js:271:10)
at Function.handle (/home/union/onegram/node_modules/express/lib/router/index.js:176:3)
at router (/home/union/onegram/node_modules/express/lib/router/index.js:46:12)
at Layer.handle [as handle_request] (/home/union/onegram/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/home/union/onegram/node_modules/express/lib/router/index.js:312:13)
at /home/union/onegram/node_modules/express/lib/router/index.js:280:7
at Function.process_params (/home/union/onegram/node_modules/express/lib/router/index.js:330:12)
at next (/home/union/onegram/node_modules/express/lib/router/index.js:271:10)
at /home/union/onegram/node_modules/body-parser/lib/read.js:129:5

@iqbalsafian
Copy link

where is your code in /home/union/onegram/server/middlewares/authenticate.js ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants