{"action":"opened","issue":{"url":"https://api.github.com/repos/xugy0926/learn-webapp-guideline/issues/77","repository_url":"https://api.github.com/repos/xugy0926/learn-webapp-guideline","labels_url":"https://api.github.com/repos/xugy0926/learn-webapp-guideline/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/xugy0926/learn-webapp-guideline/issues/77/comments","events_url":"https://api.github.com/repos/xugy0926/learn-webapp-guideline/issues/77/events","html_url":"https://github.com/xugy0926/learn-webapp-guideline/issues/77","id":324420583,"number":77,"title":"从first-app-sample-20开始出现: Cannot read property 'toObject' of null","user":{"login":"antarts","id":20819450,"avatar_url":"https://avatars3.githubusercontent.com/u/20819450?v=4","gravatar_id":"","url":"https://api.github.com/users/antarts","html_url":"https://github.com/antarts","followers_url":"https://api.github.com/users/antarts/followers","following_url":"https://api.github.com/users/antarts/following{/other_user}","gists_url":"https://api.github.com/users/antarts/gists{/gist_id}","starred_url":"https://api.github.com/users/antarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antarts/subscriptions","organizations_url":"https://api.github.com/users/antarts/orgs","repos_url":"https://api.github.com/users/antarts/repos","events_url":"https://api.github.com/users/antarts/events{/privacy}","received_events_url":"https://api.github.com/users/antarts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-18T13:54:49Z","updated_at":"2018-05-18T13:54:49Z","closed_at":null,"author_association":"NONE","body":"从first-app-sample-20开始就出现“TypeError: Cannot read property 'toObject' of null” 的错误。有知道如何解决或知道问题在哪里的同学么？\r\n错误提示如下：\r\n` antarts@Antarts-MacBook-Pro ⮀ ~/javascriptbridge/learn-webapp-sample/first-app-sample-22 ⮀ ⭠ master± ⮀ npm run dev\r\n\r\n> first-app-sample-22@0.0.0 dev /Users/antarts/javascriptbridge/learn-webapp-sample/first-app-sample-22\r\n> nodemon ./src/bin/www --exec \"node -r dotenv/config -r babel-register\"\r\n\r\n[nodemon] 1.17.4\r\n[nodemon] to restart at any time, enter `rs`\r\n[nodemon] watching: *.*\r\n[nodemon] starting `node -r dotenv/config -r babel-register ./src/bin/www`\r\nmongodb connect successed!\r\nevents.js:136\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nTypeError: Cannot read property 'toObject' of null\r\n    at /Users/antarts/javascriptbridge/learn-webapp-sample/first-app-sample-22/src/middlewares/auth.js:19:23\r\n    at model.Query.<anonymous> (/Users/antarts/javascriptbridge/learn-webapp-sample/first-app-sample-22/node_modules/mongoose/lib/model.js:4074:16)\r\n    at /Users/antarts/javascriptbridge/learn-webapp-sample/first-app-sample-22/node_modules/kareem/index.js:273:21\r\n    at /Users/antarts/javascriptbridge/learn-webapp-sample/first-app-sample-22/node_modules/kareem/index.js:131:16\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\n    at process._tickCallback (internal/process/next_tick.js:180:9)\r\n[nodemon] app crashed - waiting for file changes before starting...`"}}
{"actor":{"display_login":"antarts"}}