{"action":"opened","issue":{"url":"https://api.github.com/repos/meteorhacks/kadira/issues/247","repository_url":"https://api.github.com/repos/meteorhacks/kadira","labels_url":"https://api.github.com/repos/meteorhacks/kadira/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/meteorhacks/kadira/issues/247/comments","events_url":"https://api.github.com/repos/meteorhacks/kadira/issues/247/events","html_url":"https://github.com/meteorhacks/kadira/issues/247","id":170151525,"number":247,"title":"Bad use of underscore method causing a crash","user":{"login":"Fen747","id":13072245,"avatar_url":"https://avatars.githubusercontent.com/u/13072245?v=3","gravatar_id":"","url":"https://api.github.com/users/Fen747","html_url":"https://github.com/Fen747","followers_url":"https://api.github.com/users/Fen747/followers","following_url":"https://api.github.com/users/Fen747/following{/other_user}","gists_url":"https://api.github.com/users/Fen747/gists{/gist_id}","starred_url":"https://api.github.com/users/Fen747/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fen747/subscriptions","organizations_url":"https://api.github.com/users/Fen747/orgs","repos_url":"https://api.github.com/users/Fen747/repos","events_url":"https://api.github.com/users/Fen747/events{/privacy}","received_events_url":"https://api.github.com/users/Fen747/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T12:16:59Z","updated_at":"2016-08-09T12:16:59Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having this fatal error on my server :\r\n\r\n`message: Cannot use 'in' operator to search for 'message' in undefined \r\nstack:\r\nTypeError: Cannot use 'in' operator to search for 'message' in undefined\r\n    at packages/underscore/underscore.js:860:1\r\n    at Array.forEach (native)\r\n    at _.each._.forEach (packages/underscore/underscore.js:105:1)\r\n    at Function._.pick (packages/underscore/underscore.js:859:1)\r\n    at Subscription.subscriptionProto.error (packages/meteorhacks_kadira/lib/hijack/wrap_subscription.js:51:1)\r\n    at Subscription._runHandler (packages/ddp-server/livedata_server.js:1033:12)\r\n    at Subscription.MeteorX.Subscription._runHandler (packages/meteorhacks_unblock/packages/meteorhacks_unblock.js:55:1)\r\n    at Subscription.subscriptionProto._runHandler (packages/meteorhacks_kadira/lib/hijack/wrap_subscription.js:12:1)\r\n    at Session.MeteorX.Session._startSubscription (packages/meteorhacks_unblock/packages/meteorhacks_unblock.js:43:1)\r\n    at Session.sub (packages/ddp-server/livedata_server.js:617:12)`\r\n\r\nIt seems that in [this](https://github.com/meteorhacks/kadira/blob/master/lib/hijack/wrap_subscription.js) file, line 53, a call is made to underscore's `_.pick` [method](https://github.com/meteor/meteor/blob/devel/packages/underscore/underscore.js) (line 856), which then use the `in` operator on the `obj`argument, which is undefined, causing my app to crash.\r\n\r\nI haven't changed my code for something like 4 or 5 days, and the error started to happen last night.\r\n\r\nI've no idea how to correct that or why it happens now. My app keeps crashing now on a certain user action (it seems), unknown to me, and I'm totally unaware of how to solve that. But it seems that the problem really comes from Kadira, which pass an undefined parameter to `_.pick`."}}
{"actor":{"display_login":"Fen747"}}