{"action":"created","comment":{"url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/comments/27965867","id":27965867,"diff_hunk":"@@ -38,7 +42,10 @@ Notifier.prototype.handler = function( request, response ) {\n \t\t\t}\n \t\t\tdata = JSON.parse( data );\n \t\t} catch( error ) {\n+\n \t\t\t// Invalid data, stop processing\n+\t\t\terror = new Error( \"Invalid data: \" + error.message );\n+\t\t\terror.payload = data;","path":"index.js","position":18,"original_position":18,"commit_id":"27d94413812c9b6b70778b2edf8e93fdf24a1701","original_commit_id":"27d94413812c9b6b70778b2edf8e93fdf24a1701","user":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"body":"At this point, `data` is already parsed as a query string. Let's change `data` to `rawData` and then have `var data = rawData` as the first line of the `end` event.","created_at":"2015-04-08T12:48:32Z","updated_at":"2015-04-08T12:48:32Z","html_url":"https://github.com/scottgonzalez/node-git-notifier/pull/8#discussion_r27965867","pull_request_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/comments/27965867"},"html":{"href":"https://github.com/scottgonzalez/node-git-notifier/pull/8#discussion_r27965867"},"pull_request":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8","id":32763464,"html_url":"https://github.com/scottgonzalez/node-git-notifier/pull/8","diff_url":"https://github.com/scottgonzalez/node-git-notifier/pull/8.diff","patch_url":"https://github.com/scottgonzalez/node-git-notifier/pull/8.patch","issue_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues/8","number":8,"state":"open","locked":false,"title":"Include extra information on \"Invalid data parsing payload\" error","user":{"login":"rxaviers","id":967155,"avatar_url":"https://avatars.githubusercontent.com/u/967155?v=3","gravatar_id":"","url":"https://api.github.com/users/rxaviers","html_url":"https://github.com/rxaviers","followers_url":"https://api.github.com/users/rxaviers/followers","following_url":"https://api.github.com/users/rxaviers/following{/other_user}","gists_url":"https://api.github.com/users/rxaviers/gists{/gist_id}","starred_url":"https://api.github.com/users/rxaviers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxaviers/subscriptions","organizations_url":"https://api.github.com/users/rxaviers/orgs","repos_url":"https://api.github.com/users/rxaviers/repos","events_url":"https://api.github.com/users/rxaviers/events{/privacy}","received_events_url":"https://api.github.com/users/rxaviers/received_events","type":"User","site_admin":false},"body":"Fixes #7","created_at":"2015-04-07T13:28:48Z","updated_at":"2015-04-08T12:48:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0281dbfe9c21ae3a9cb64685c754a215f6257a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8/commits","review_comments_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8/comments","review_comment_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues/8/comments","statuses_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/statuses/27d94413812c9b6b70778b2edf8e93fdf24a1701","head":{"label":"rxaviers:fix-7","ref":"fix-7","sha":"27d94413812c9b6b70778b2edf8e93fdf24a1701","user":{"login":"rxaviers","id":967155,"avatar_url":"https://avatars.githubusercontent.com/u/967155?v=3","gravatar_id":"","url":"https://api.github.com/users/rxaviers","html_url":"https://github.com/rxaviers","followers_url":"https://api.github.com/users/rxaviers/followers","following_url":"https://api.github.com/users/rxaviers/following{/other_user}","gists_url":"https://api.github.com/users/rxaviers/gists{/gist_id}","starred_url":"https://api.github.com/users/rxaviers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxaviers/subscriptions","organizations_url":"https://api.github.com/users/rxaviers/orgs","repos_url":"https://api.github.com/users/rxaviers/repos","events_url":"https://api.github.com/users/rxaviers/events{/privacy}","received_events_url":"https://api.github.com/users/rxaviers/received_events","type":"User","site_admin":false},"repo":{"id":24734608,"name":"node-git-notifier","full_name":"rxaviers/node-git-notifier","owner":{"login":"rxaviers","id":967155,"avatar_url":"https://avatars.githubusercontent.com/u/967155?v=3","gravatar_id":"","url":"https://api.github.com/users/rxaviers","html_url":"https://github.com/rxaviers","followers_url":"https://api.github.com/users/rxaviers/followers","following_url":"https://api.github.com/users/rxaviers/following{/other_user}","gists_url":"https://api.github.com/users/rxaviers/gists{/gist_id}","starred_url":"https://api.github.com/users/rxaviers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxaviers/subscriptions","organizations_url":"https://api.github.com/users/rxaviers/orgs","repos_url":"https://api.github.com/users/rxaviers/repos","events_url":"https://api.github.com/users/rxaviers/events{/privacy}","received_events_url":"https://api.github.com/users/rxaviers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rxaviers/node-git-notifier","description":"Listen for GitHub updates using an EventEmitter.","fork":true,"url":"https://api.github.com/repos/rxaviers/node-git-notifier","forks_url":"https://api.github.com/repos/rxaviers/node-git-notifier/forks","keys_url":"https://api.github.com/repos/rxaviers/node-git-notifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rxaviers/node-git-notifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rxaviers/node-git-notifier/teams","hooks_url":"https://api.github.com/repos/rxaviers/node-git-notifier/hooks","issue_events_url":"https://api.github.com/repos/rxaviers/node-git-notifier/issues/events{/number}","events_url":"https://api.github.com/repos/rxaviers/node-git-notifier/events","assignees_url":"https://api.github.com/repos/rxaviers/node-git-notifier/assignees{/user}","branches_url":"https://api.github.com/repos/rxaviers/node-git-notifier/branches{/branch}","tags_url":"https://api.github.com/repos/rxaviers/node-git-notifier/tags","blobs_url":"https://api.github.com/repos/rxaviers/node-git-notifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rxaviers/node-git-notifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rxaviers/node-git-notifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/rxaviers/node-git-notifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rxaviers/node-git-notifier/statuses/{sha}","languages_url":"https://api.github.com/repos/rxaviers/node-git-notifier/languages","stargazers_url":"https://api.github.com/repos/rxaviers/node-git-notifier/stargazers","contributors_url":"https://api.github.com/repos/rxaviers/node-git-notifier/contributors","subscribers_url":"https://api.github.com/repos/rxaviers/node-git-notifier/subscribers","subscription_url":"https://api.github.com/repos/rxaviers/node-git-notifier/subscription","commits_url":"https://api.github.com/repos/rxaviers/node-git-notifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/rxaviers/node-git-notifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/rxaviers/node-git-notifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/rxaviers/node-git-notifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/rxaviers/node-git-notifier/contents/{+path}","compare_url":"https://api.github.com/repos/rxaviers/node-git-notifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rxaviers/node-git-notifier/merges","archive_url":"https://api.github.com/repos/rxaviers/node-git-notifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rxaviers/node-git-notifier/downloads","issues_url":"https://api.github.com/repos/rxaviers/node-git-notifier/issues{/number}","pulls_url":"https://api.github.com/repos/rxaviers/node-git-notifier/pulls{/number}","milestones_url":"https://api.github.com/repos/rxaviers/node-git-notifier/milestones{/number}","notifications_url":"https://api.github.com/repos/rxaviers/node-git-notifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rxaviers/node-git-notifier/labels{/name}","releases_url":"https://api.github.com/repos/rxaviers/node-git-notifier/releases{/id}","created_at":"2014-10-02T20:07:36Z","updated_at":"2015-04-04T19:01:35Z","pushed_at":"2015-04-07T14:33:59Z","git_url":"git://github.com/rxaviers/node-git-notifier.git","ssh_url":"git@github.com:rxaviers/node-git-notifier.git","clone_url":"https://github.com/rxaviers/node-git-notifier.git","svn_url":"https://github.com/rxaviers/node-git-notifier","homepage":null,"size":107,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scottgonzalez:master","ref":"master","sha":"6d7205d286e55c79afe177a5c6e8734c8b3f6f9b","user":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"repo":{"id":5012542,"name":"node-git-notifier","full_name":"scottgonzalez/node-git-notifier","owner":{"login":"scottgonzalez","id":141167,"avatar_url":"https://avatars.githubusercontent.com/u/141167?v=3","gravatar_id":"","url":"https://api.github.com/users/scottgonzalez","html_url":"https://github.com/scottgonzalez","followers_url":"https://api.github.com/users/scottgonzalez/followers","following_url":"https://api.github.com/users/scottgonzalez/following{/other_user}","gists_url":"https://api.github.com/users/scottgonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgonzalez/subscriptions","organizations_url":"https://api.github.com/users/scottgonzalez/orgs","repos_url":"https://api.github.com/users/scottgonzalez/repos","events_url":"https://api.github.com/users/scottgonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/scottgonzalez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottgonzalez/node-git-notifier","description":"Listen for GitHub updates using an EventEmitter.","fork":false,"url":"https://api.github.com/repos/scottgonzalez/node-git-notifier","forks_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/forks","keys_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/teams","hooks_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/hooks","issue_events_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues/events{/number}","events_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/events","assignees_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/assignees{/user}","branches_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/branches{/branch}","tags_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/tags","blobs_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/statuses/{sha}","languages_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/languages","stargazers_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/stargazers","contributors_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/contributors","subscribers_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/subscribers","subscription_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/subscription","commits_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/contents/{+path}","compare_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/merges","archive_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/downloads","issues_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues{/number}","pulls_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls{/number}","milestones_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/milestones{/number}","notifications_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/labels{/name}","releases_url":"https://api.github.com/repos/scottgonzalez/node-git-notifier/releases{/id}","created_at":"2012-07-13T00:58:41Z","updated_at":"2015-02-27T13:56:08Z","pushed_at":"2015-04-07T14:33:59Z","git_url":"git://github.com/scottgonzalez/node-git-notifier.git","ssh_url":"git@github.com:scottgonzalez/node-git-notifier.git","clone_url":"https://github.com/scottgonzalez/node-git-notifier.git","svn_url":"https://github.com/scottgonzalez/node-git-notifier","homepage":null,"size":276,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8"},"html":{"href":"https://github.com/scottgonzalez/node-git-notifier/pull/8"},"issue":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues/8"},"comments":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/scottgonzalez/node-git-notifier/statuses/27d94413812c9b6b70778b2edf8e93fdf24a1701"}}}}