{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/77","repository_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/77/comments","events_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/77/events","html_url":"https://github.com/Azure/azure-webjobs-sdk-script/issues/77","id":139789011,"number":77,"title":"GitHub WebHook \"Run Now\" always returns an error","user":{"login":"christopheranderson","id":2252976,"avatar_url":"https://avatars.githubusercontent.com/u/2252976?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheranderson","html_url":"https://github.com/christopheranderson","followers_url":"https://api.github.com/users/christopheranderson/followers","following_url":"https://api.github.com/users/christopheranderson/following{/other_user}","gists_url":"https://api.github.com/users/christopheranderson/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheranderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheranderson/subscriptions","organizations_url":"https://api.github.com/users/christopheranderson/orgs","repos_url":"https://api.github.com/users/christopheranderson/repos","events_url":"https://api.github.com/users/christopheranderson/events{/privacy}","received_events_url":"https://api.github.com/users/christopheranderson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-10T05:20:55Z","updated_at":"2016-03-10T20:52:36Z","closed_at":"2016-03-10T20:52:35Z","body":"GitHub WebHook always returns returns the following error when invoked via the \"Run Now\" endpoint:\r\n\r\n```\r\n{\r\n   \"_body\":\"{\\\"Message\\\":\\\"An error has occurred.\\\"}\",\r\n   \"status\":500,\r\n   \"statusText\":\"Ok\",\r\n   \"headers\":{\r\n     \"Pragma\":[\"no-cache\"],\r\n     \"Date\":[\"Thu\",\" 10 Mar 2016 05:16:34 GMT\"],\r\n     \"Server\":[\"Microsoft-IIS/8.0\"],\r\n     \"X-AspNet-Version\":[\"4.0.30319\"],\r\n     \"instance-name\":[\"functions-bay\"],\r\n     \"X-Powered-By\":[\"ASP.NET\"],\r\n     \"Content-Type\":[\"application/json; charset=utf-8\"],\r\n     \"Cache-Control\":[\"no-cache\"],\r\n     \"Content-Length\":[\"36\"],\r\n     \"Expires\":[\"-1\"]\r\n  },\r\n  \"type\":2,\r\n  \"url\":\"**URL HERE**\"\r\n}\r\n```\r\n\r\nIdeally this would work like the Generic WebHook where it will pass the content through as JSON."},"comment":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/comments/195042171","html_url":"https://github.com/Azure/azure-webjobs-sdk-script/issues/77#issuecomment-195042171","issue_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk-script/issues/77","id":195042171,"user":{"login":"mathewc","id":1056548,"avatar_url":"https://avatars.githubusercontent.com/u/1056548?v=3","gravatar_id":"","url":"https://api.github.com/users/mathewc","html_url":"https://github.com/mathewc","followers_url":"https://api.github.com/users/mathewc/followers","following_url":"https://api.github.com/users/mathewc/following{/other_user}","gists_url":"https://api.github.com/users/mathewc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewc/subscriptions","organizations_url":"https://api.github.com/users/mathewc/orgs","repos_url":"https://api.github.com/users/mathewc/repos","events_url":"https://api.github.com/users/mathewc/events{/privacy}","received_events_url":"https://api.github.com/users/mathewc/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T20:52:35Z","updated_at":"2016-03-10T20:52:35Z","body":"I looked into this - this is happening because the portal isn't sending a application/json Content-Type. See https://github.com/projectkudu/WebJobsPortal/issues/48"}}