{"action":"created","issue":{"url":"https://api.github.com/repos/cnodejs/nodeclub/issues/672","labels_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/672/comments","events_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/672/events","html_url":"https://github.com/cnodejs/nodeclub/issues/672","id":124295243,"number":672,"title":"我本地启动很正常,但是一旦部署到服务器上,就会报下面这个错","user":{"login":"qxl1231","id":8305742,"avatar_url":"https://avatars.githubusercontent.com/u/8305742?v=3","gravatar_id":"","url":"https://api.github.com/users/qxl1231","html_url":"https://github.com/qxl1231","followers_url":"https://api.github.com/users/qxl1231/followers","following_url":"https://api.github.com/users/qxl1231/following{/other_user}","gists_url":"https://api.github.com/users/qxl1231/gists{/gist_id}","starred_url":"https://api.github.com/users/qxl1231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qxl1231/subscriptions","organizations_url":"https://api.github.com/users/qxl1231/orgs","repos_url":"https://api.github.com/users/qxl1231/repos","events_url":"https://api.github.com/users/qxl1231/events{/privacy}","received_events_url":"https://api.github.com/users/qxl1231/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-30T02:33:47Z","updated_at":"2016-01-19T08:11:41Z","closed_at":null,"body":"Connect\r\n500 TypeError: Cannot read property 'user' of undefined\r\n at exports.authUser (/root/qxl/nodeclub/middlewares/auth.js:94:18)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at initialize (/root/qxl/nodeclub/node_modules/passport/lib/middleware/initialize.js:53:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at session (/root/qxl/nodeclub/node_modules/express-session/index.js:159:61)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at compression (/root/qxl/nodeclub/node_modules/compression/index.js:218:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at cookieParser (/root/qxl/nodeclub/node_modules/cookie-parser/index.js:68:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at methodOverride (/root/qxl/nodeclub/node_modules/method-override/index.js:65:14)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at urlencodedParser (/root/qxl/nodeclub/node_modules/body-parser/lib/types/urlencoded.js:88:40)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at jsonParser (/root/qxl/nodeclub/node_modules/body-parser/lib/types/json.js:100:40)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at frameguard (/root/qxl/nodeclub/node_modules/helmet/node_modules/frameguard/index.js:32:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at responseTime (/root/qxl/nodeclub/node_modules/response-time/index.js:59:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at /root/qxl/nodeclub/node_modules/loader-connect/connect.js:20:14\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at exports.render (/root/qxl/nodeclub/middlewares/render.js:16:3)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at module.exports (/root/qxl/nodeclub/middlewares/request_log.js:19:3)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at expressInit (/root/qxl/nodeclub/node_modules/express/lib/middleware/init.js:33:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at query (/root/qxl/nodeclub/node_modules/express/lib/middleware/query.js:49:5)\r\n at Layer.handle [as handle_request] (/root/qxl/nodeclub/node_modules/express/lib/router/layer.js:95:5)\r\n at trim_prefix (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:312:13)\r\n at /root/qxl/nodeclub/node_modules/express/lib/router/index.js:280:7\r\n at Function.process_params (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:330:12)\r\n at next (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:271:10)\r\n at Function.handle (/root/qxl/nodeclub/node_modules/express/lib/router/index.js:176:3)\r\n at EventEmitter.handle (/root/qxl/nodeclub/node_modules/express/lib/application.js:173:10)\r\n at Server.app (/root/qxl/nodeclub/node_modules/express/lib/express.js:38:9)\r\n at Server.emit (events.js:98:17)\r\n at HTTPParser.parser.onIncoming (http.js:2113:12)\r\n at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:122:23)\r\n at Socket.socket.ondata (http.js:1971:22)\r\n at TCP.onread (net.js:528:27)"},"comment":{"url":"https://api.github.com/repos/cnodejs/nodeclub/issues/comments/172771108","html_url":"https://github.com/cnodejs/nodeclub/issues/672#issuecomment-172771108","issue_url":"https://api.github.com/repos/cnodejs/nodeclub/issues/672","id":172771108,"user":{"login":"qxl1231","id":8305742,"avatar_url":"https://avatars.githubusercontent.com/u/8305742?v=3","gravatar_id":"","url":"https://api.github.com/users/qxl1231","html_url":"https://github.com/qxl1231","followers_url":"https://api.github.com/users/qxl1231/followers","following_url":"https://api.github.com/users/qxl1231/following{/other_user}","gists_url":"https://api.github.com/users/qxl1231/gists{/gist_id}","starred_url":"https://api.github.com/users/qxl1231/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qxl1231/subscriptions","organizations_url":"https://api.github.com/users/qxl1231/orgs","repos_url":"https://api.github.com/users/qxl1231/repos","events_url":"https://api.github.com/users/qxl1231/events{/privacy}","received_events_url":"https://api.github.com/users/qxl1231/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T08:11:41Z","updated_at":"2016-01-19T08:11:41Z","body":"能否合并到主版本上哈,跟atang 商量下?"}}