{"action":"created","issue":{"url":"https://api.github.com/repos/mhkeller/kestrel/issues/10","labels_url":"https://api.github.com/repos/mhkeller/kestrel/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mhkeller/kestrel/issues/10/comments","events_url":"https://api.github.com/repos/mhkeller/kestrel/issues/10/events","html_url":"https://github.com/mhkeller/kestrel/issues/10","id":102476103,"number":10,"title":"Cannot POST to kestrel-server with Github Payload","user":{"login":"aboutaaron","id":856628,"avatar_url":"https://avatars.githubusercontent.com/u/856628?v=3","gravatar_id":"","url":"https://api.github.com/users/aboutaaron","html_url":"https://github.com/aboutaaron","followers_url":"https://api.github.com/users/aboutaaron/followers","following_url":"https://api.github.com/users/aboutaaron/following{/other_user}","gists_url":"https://api.github.com/users/aboutaaron/gists{/gist_id}","starred_url":"https://api.github.com/users/aboutaaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboutaaron/subscriptions","organizations_url":"https://api.github.com/users/aboutaaron/orgs","repos_url":"https://api.github.com/users/aboutaaron/repos","events_url":"https://api.github.com/users/aboutaaron/events{/privacy}","received_events_url":"https://api.github.com/users/aboutaaron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-21T22:54:12Z","updated_at":"2015-08-21T23:53:45Z","closed_at":null,"body":"\r\nPOST\r\n```bash\r\n$ curl -X POST http://$SERVER-URL:9001 -d '$PAYLOAD'\r\n```\r\n\r\nSERVER RESPONSE:\r\n```bash\r\nListening on port... 9001\r\nError: Invalid ref\r\n    at /home/edsys/kestrel/node_modules/hookshot/lib/index.js:28:13\r\n    at Layer.handle [as handle_request] (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/layer.js:82:5)\r\n    at next (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/route.js:100:13)\r\n    at Route.dispatch (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/route.js:81:3)\r\n    at Layer.handle [as handle_request] (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/layer.js:82:5)\r\n    at /home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/index.js:234:24\r\n    at Function.proto.process_params (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/index.js:312:12)\r\n    at /home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/index.js:228:12\r\n    at Function.match_layer (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/index.js:295:3)\r\n    at next (/home/edsys/kestrel/node_modules/hookshot/node_modules/express/lib/router/index.js:189:10)\r\n```\r\n\r\nPayload:\r\n```json\r\n{\r\n  \"ref\": \"refs/heads/master\",\r\n  \"before\": \"0000000000000000000000000000000000000000\",\r\n  \"after\": \"340a2a14d737ae0ee92e8047d448acd34699ced0\",\r\n  \"created\": true,\r\n  \"deleted\": false,\r\n  \"forced\": true,\r\n  \"base_ref\": null,\r\n  \"compare\": \"https://github.com/sfchronicle/test-project/commit/340a2a14d737\",\r\n  \"commits\": [\r\n    {\r\n      \"id\": \"340a2a14d737ae0ee92e8047d448acd34699ced0\",\r\n      \"distinct\": true,\r\n      \"message\": \"initial commit\",\r\n      \"timestamp\": \"2015-08-20T12:10:14-07:00\",\r\n      \"url\": \"https://github.com/sfchronicle/test-project/commit/340a2a14d737ae0ee92e8047d448acd34699ced0\",\r\n      \"author\": {\r\n        \"name\": \"Aaron Williams\",\r\n        \"email\": \"aaron.colby.williams@gmail.com\",\r\n        \"username\": \"aboutaaron\"\r\n      },\r\n      \"committer\": {\r\n        \"name\": \"Aaron Williams\",\r\n        \"email\": \"aaron.colby.williams@gmail.com\",\r\n        \"username\": \"aboutaaron\"\r\n      },\r\n      \"added\": [\r\n        \".bowerrc\",\r\n        \".editorconfig\",\r\n        \".gitattributes\",\r\n        \".gitignore\",\r\n        \".jshintrc\",\r\n        \".yo-rc.json\",\r\n        \"Gruntfile.js\",\r\n        \"README.md\",\r\n        \"app/favicon.ico\",\r\n        \"app/index.html\",\r\n        \"app/robots.txt\",\r\n        \"app/scripts/main.js\",\r\n        \"app/styles/main.scss\",\r\n        \"bower.json\",\r\n        \"package.json\",\r\n        \"test/.bowerrc\",\r\n        \"test/bower.json\",\r\n        \"test/index.html\",\r\n        \"test/spec/test.js\"\r\n      ],\r\n      \"removed\": [\r\n\r\n      ],\r\n      \"modified\": [\r\n\r\n      ]\r\n    }\r\n  ],\r\n  \"head_commit\": {\r\n    \"id\": \"340a2a14d737ae0ee92e8047d448acd34699ced0\",\r\n    \"distinct\": true,\r\n    \"message\": \"initial commit\",\r\n    \"timestamp\": \"2015-08-20T12:10:14-07:00\",\r\n    \"url\": \"https://github.com/sfchronicle/test-project/commit/340a2a14d737ae0ee92e8047d448acd34699ced0\",\r\n    \"author\": {\r\n      \"name\": \"Aaron Williams\",\r\n      \"email\": \"aaron.colby.williams@gmail.com\",\r\n      \"username\": \"aboutaaron\"\r\n    },\r\n    \"committer\": {\r\n      \"name\": \"Aaron Williams\",\r\n      \"email\": \"aaron.colby.williams@gmail.com\",\r\n      \"username\": \"aboutaaron\"\r\n    },\r\n    \"added\": [\r\n      \".bowerrc\",\r\n      \".editorconfig\",\r\n      \".gitattributes\",\r\n      \".gitignore\",\r\n      \".jshintrc\",\r\n      \".yo-rc.json\",\r\n      \"Gruntfile.js\",\r\n      \"README.md\",\r\n      \"app/favicon.ico\",\r\n      \"app/index.html\",\r\n      \"app/robots.txt\",\r\n      \"app/scripts/main.js\",\r\n      \"app/styles/main.scss\",\r\n      \"bower.json\",\r\n      \"package.json\",\r\n      \"test/.bowerrc\",\r\n      \"test/bower.json\",\r\n      \"test/index.html\",\r\n      \"test/spec/test.js\"\r\n    ],\r\n    \"removed\": [\r\n\r\n    ],\r\n    \"modified\": [\r\n\r\n    ]\r\n  },\r\n  \"repository\": {\r\n    \"id\": 41114129,\r\n    \"name\": \"test-project\",\r\n    \"full_name\": \"sfchronicle/test-project\",\r\n    \"owner\": {\r\n      \"name\": \"sfchronicle\",\r\n      \"email\": \"\"\r\n    },\r\n    \"private\": true,\r\n    \"html_url\": \"https://github.com/sfchronicle/test-project\",\r\n    \"description\": null,\r\n    \"fork\": false,\r\n    \"url\": \"https://github.com/sfchronicle/test-project\",\r\n    \"forks_url\": \"https://api.github.com/repos/sfchronicle/test-project/forks\",\r\n    \"keys_url\": \"https://api.github.com/repos/sfchronicle/test-project/keys{/key_id}\",\r\n    \"collaborators_url\": \"https://api.github.com/repos/sfchronicle/test-project/collaborators{/collaborator}\",\r\n    \"teams_url\": \"https://api.github.com/repos/sfchronicle/test-project/teams\",\r\n    \"hooks_url\": \"https://api.github.com/repos/sfchronicle/test-project/hooks\",\r\n    \"issue_events_url\": \"https://api.github.com/repos/sfchronicle/test-project/issues/events{/number}\",\r\n    \"events_url\": \"https://api.github.com/repos/sfchronicle/test-project/events\",\r\n    \"assignees_url\": \"https://api.github.com/repos/sfchronicle/test-project/assignees{/user}\",\r\n    \"branches_url\": \"https://api.github.com/repos/sfchronicle/test-project/branches{/branch}\",\r\n    \"tags_url\": \"https://api.github.com/repos/sfchronicle/test-project/tags\",\r\n    \"blobs_url\": \"https://api.github.com/repos/sfchronicle/test-project/git/blobs{/sha}\",\r\n    \"git_tags_url\": \"https://api.github.com/repos/sfchronicle/test-project/git/tags{/sha}\",\r\n    \"git_refs_url\": \"https://api.github.com/repos/sfchronicle/test-project/git/refs{/sha}\",\r\n    \"trees_url\": \"https://api.github.com/repos/sfchronicle/test-project/git/trees{/sha}\",\r\n    \"statuses_url\": \"https://api.github.com/repos/sfchronicle/test-project/statuses/{sha}\",\r\n    \"languages_url\": \"https://api.github.com/repos/sfchronicle/test-project/languages\",\r\n    \"stargazers_url\": \"https://api.github.com/repos/sfchronicle/test-project/stargazers\",\r\n    \"contributors_url\": \"https://api.github.com/repos/sfchronicle/test-project/contributors\",\r\n    \"subscribers_url\": \"https://api.github.com/repos/sfchronicle/test-project/subscribers\",\r\n    \"subscription_url\": \"https://api.github.com/repos/sfchronicle/test-project/subscription\",\r\n    \"commits_url\": \"https://api.github.com/repos/sfchronicle/test-project/commits{/sha}\",\r\n    \"git_commits_url\": \"https://api.github.com/repos/sfchronicle/test-project/git/commits{/sha}\",\r\n    \"comments_url\": \"https://api.github.com/repos/sfchronicle/test-project/comments{/number}\",\r\n    \"issue_comment_url\": \"https://api.github.com/repos/sfchronicle/test-project/issues/comments{/number}\",\r\n    \"contents_url\": \"https://api.github.com/repos/sfchronicle/test-project/contents/{+path}\",\r\n    \"compare_url\": \"https://api.github.com/repos/sfchronicle/test-project/compare/{base}...{head}\",\r\n    \"merges_url\": \"https://api.github.com/repos/sfchronicle/test-project/merges\",\r\n    \"archive_url\": \"https://api.github.com/repos/sfchronicle/test-project/{archive_format}{/ref}\",\r\n    \"downloads_url\": \"https://api.github.com/repos/sfchronicle/test-project/downloads\",\r\n    \"issues_url\": \"https://api.github.com/repos/sfchronicle/test-project/issues{/number}\",\r\n    \"pulls_url\": \"https://api.github.com/repos/sfchronicle/test-project/pulls{/number}\",\r\n    \"milestones_url\": \"https://api.github.com/repos/sfchronicle/test-project/milestones{/number}\",\r\n    \"notifications_url\": \"https://api.github.com/repos/sfchronicle/test-project/notifications{?since,all,participating}\",\r\n    \"labels_url\": \"https://api.github.com/repos/sfchronicle/test-project/labels{/name}\",\r\n    \"releases_url\": \"https://api.github.com/repos/sfchronicle/test-project/releases{/id}\",\r\n    \"created_at\": 1440097773,\r\n    \"updated_at\": \"2015-08-20T19:09:33Z\",\r\n    \"pushed_at\": 1440097820,\r\n    \"git_url\": \"git://github.com/sfchronicle/test-project.git\",\r\n    \"ssh_url\": \"git@github.com:sfchronicle/test-project.git\",\r\n    \"clone_url\": \"https://github.com/sfchronicle/test-project.git\",\r\n    \"svn_url\": \"https://github.com/sfchronicle/test-project\",\r\n    \"homepage\": null,\r\n    \"size\": 0,\r\n    \"stargazers_count\": 0,\r\n    \"watchers_count\": 0,\r\n    \"language\": null,\r\n    \"has_issues\": true,\r\n    \"has_downloads\": true,\r\n    \"has_wiki\": true,\r\n    \"has_pages\": false,\r\n    \"forks_count\": 0,\r\n    \"mirror_url\": null,\r\n    \"open_issues_count\": 0,\r\n    \"forks\": 0,\r\n    \"open_issues\": 0,\r\n    \"watchers\": 0,\r\n    \"default_branch\": \"master\",\r\n    \"stargazers\": 0,\r\n    \"master_branch\": \"master\",\r\n    \"organization\": \"sfchronicle\"\r\n  },\r\n  \"pusher\": {\r\n    \"name\": \"aboutaaron\",\r\n    \"email\": \"aaron.colby.williams@gmail.com\"\r\n  },\r\n  \"organization\": {\r\n    \"login\": \"sfchronicle\",\r\n    \"id\": 12716373,\r\n    \"url\": \"https://api.github.com/orgs/sfchronicle\",\r\n    \"repos_url\": \"https://api.github.com/orgs/sfchronicle/repos\",\r\n    \"events_url\": \"https://api.github.com/orgs/sfchronicle/events\",\r\n    \"members_url\": \"https://api.github.com/orgs/sfchronicle/members{/member}\",\r\n    \"public_members_url\": \"https://api.github.com/orgs/sfchronicle/public_members{/member}\",\r\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/12716373?v=3\",\r\n    \"description\": \"Code from the San Francisco Chronicle Interactive Desk\"\r\n  },\r\n  \"sender\": {\r\n    \"login\": \"aboutaaron\",\r\n    \"id\": 856628,\r\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/856628?v=3\",\r\n    \"gravatar_id\": \"\",\r\n    \"url\": \"https://api.github.com/users/aboutaaron\",\r\n    \"html_url\": \"https://github.com/aboutaaron\",\r\n    \"followers_url\": \"https://api.github.com/users/aboutaaron/followers\",\r\n    \"following_url\": \"https://api.github.com/users/aboutaaron/following{/other_user}\",\r\n    \"gists_url\": \"https://api.github.com/users/aboutaaron/gists{/gist_id}\",\r\n    \"starred_url\": \"https://api.github.com/users/aboutaaron/starred{/owner}{/repo}\",\r\n    \"subscriptions_url\": \"https://api.github.com/users/aboutaaron/subscriptions\",\r\n    \"organizations_url\": \"https://api.github.com/users/aboutaaron/orgs\",\r\n    \"repos_url\": \"https://api.github.com/users/aboutaaron/repos\",\r\n    \"events_url\": \"https://api.github.com/users/aboutaaron/events{/privacy}\",\r\n    \"received_events_url\": \"https://api.github.com/users/aboutaaron/received_events\",\r\n    \"type\": \"User\",\r\n    \"site_admin\": false\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mhkeller/kestrel/issues/comments/133592345","html_url":"https://github.com/mhkeller/kestrel/issues/10#issuecomment-133592345","issue_url":"https://api.github.com/repos/mhkeller/kestrel/issues/10","id":133592345,"user":{"login":"mhkeller","id":498744,"avatar_url":"https://avatars.githubusercontent.com/u/498744?v=3","gravatar_id":"","url":"https://api.github.com/users/mhkeller","html_url":"https://github.com/mhkeller","followers_url":"https://api.github.com/users/mhkeller/followers","following_url":"https://api.github.com/users/mhkeller/following{/other_user}","gists_url":"https://api.github.com/users/mhkeller/gists{/gist_id}","starred_url":"https://api.github.com/users/mhkeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhkeller/subscriptions","organizations_url":"https://api.github.com/users/mhkeller/orgs","repos_url":"https://api.github.com/users/mhkeller/repos","events_url":"https://api.github.com/users/mhkeller/events{/privacy}","received_events_url":"https://api.github.com/users/mhkeller/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T23:53:45Z","updated_at":"2015-08-21T23:53:45Z","body":"this is the change btw\r\n\r\nhttps://github.com/mhkeller/hookshot/commit/4cd4ad80a5f31577ffcd2845510d4bac0a57cb66"}}