{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server/issues/170","repository_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server","labels_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server/issues/170/comments","events_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server/issues/170/events","html_url":"https://github.com/Azure/azure-mobile-apps-net-server/issues/170","id":190902648,"number":170,"title":"MobileServiceClient.GetPush().RegisterAsync recently throws HTTP 500 Error","user":{"login":"ericbrunner","id":6480047,"avatar_url":"https://avatars.githubusercontent.com/u/6480047?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbrunner","html_url":"https://github.com/ericbrunner","followers_url":"https://api.github.com/users/ericbrunner/followers","following_url":"https://api.github.com/users/ericbrunner/following{/other_user}","gists_url":"https://api.github.com/users/ericbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbrunner/subscriptions","organizations_url":"https://api.github.com/users/ericbrunner/orgs","repos_url":"https://api.github.com/users/ericbrunner/repos","events_url":"https://api.github.com/users/ericbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ericbrunner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T04:07:20Z","updated_at":"2016-11-23T01:53:20Z","closed_at":null,"body":"Since a few days I noticed that my GCM / FCM Pushhub registration fails at the Azure backend. I investigated and can only see that I get a Http 500 (Internal Server ) Error in my Zumo DelegatingHandler. \r\n\r\n> **request**\r\n\r\n> {Method: PUT, RequestUri: 'https://myservice.azurewebsites.net/push/installations/0a7d2ff5-3bc8-492c-a62d-16fd048a4fb9', Version: 1.1, Content: System.Net.Http.StringContent, Headers:\r\n> {\r\n> X-ZUMO-INSTALLATION-ID: 0a7d2ff5-3bc8-492c-a62d-16fd048a4fb9\r\n> X-ZUMO-AUTH: MY-SECRET\r\n> Accept: application/json\r\n> User-Agent: ZUMO/3.0 (lang=Managed; os=Android; os_version=4.4.2; arch=Unix; version=3.0.41013.0)\r\n> X-ZUMO-VERSION: ZUMO/3.0 (lang=Managed; os=Android; os_version=4.4.2; arch=Unix; version=3.0.41013.0)\r\n> ZUMO-API-VERSION: 2.0.0\r\n> Content-Type: application/json; charset=utf-8\r\n> }}\r\n>     Content: {System.Net.Http.StringContent}\r\n>     Headers: {System.Net.Http.Headers.HttpRequestHeaders}\r\n>     Method: {System.Net.Http.HttpMethod}\r\n>     Properties: Count = 0\r\n>     RequestUri: {System.Uri}\r\n>     Version: {System.Version}\r\n> \r\n\r\n\t\r\n\r\n> **response**\r\n\r\n> {StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:\r\n> {\r\n> Server: Microsoft-IIS/8.0\r\n> X-Powered-By: ASP.NET\r\n> Set-Cookie: ARRAffinity=3dee1aaafd123bc271395ee9f57e8b783a1f3f93525ee9b090ecfbdb17307c9b;Path=/;Domain=trucker-rolsped.azurewebsites.net\r\n> Date: Sun, 20 Nov 2016 10:28:43 GMT\r\n> Content-Length: 75\r\n> Content-Type: text/html\r\n> }}\r\n>     Content: {System.Net.Http.StreamContent}\r\n>     Headers: {System.Net.Http.Headers.HttpResponseHeaders}\r\n>     IsSuccessStatusCode: false\r\n>     ReasonPhrase: \"Internal Server Error\"\r\n>     RequestMessage: {System.Net.Http.HttpRequestMessage}\r\n>     StatusCode: System.Net.HttpStatusCode.InternalServerError\r\n>     Version: {System.Version}\r\n> \r\n\r\nCode that throws an excpetion:\r\n\r\n`await pushHub.RegisterAsync(RegistrationId, templates).ConfigureAwait(false);`\r\n\r\nI use a CustomAuthController that works fine so I can still authenticate and get a valid Zumo Auth Token with my UserId set to my own specific id. That works with my existing Zumo TableController.\r\n\r\n\r\n\r\nI saw at waffle.io that @AdrianHall closed an issue with [RegisterAsync not working](https://github.com/Azure/azure-mobile-apps-net-client/issues/261) because it is a Azure backend issue.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server/issues/comments/262418055","html_url":"https://github.com/Azure/azure-mobile-apps-net-server/issues/170#issuecomment-262418055","issue_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-server/issues/170","id":262418055,"user":{"login":"adrianhall","id":1489465,"avatar_url":"https://avatars.githubusercontent.com/u/1489465?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianhall","html_url":"https://github.com/adrianhall","followers_url":"https://api.github.com/users/adrianhall/followers","following_url":"https://api.github.com/users/adrianhall/following{/other_user}","gists_url":"https://api.github.com/users/adrianhall/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianhall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianhall/subscriptions","organizations_url":"https://api.github.com/users/adrianhall/orgs","repos_url":"https://api.github.com/users/adrianhall/repos","events_url":"https://api.github.com/users/adrianhall/events{/privacy}","received_events_url":"https://api.github.com/users/adrianhall/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T01:53:20Z","updated_at":"2016-11-23T01:53:20Z","body":"The zumobook code is not complete yet and that chapter is not finished nor ready.\r\n\r\nAdd the X-ZUMO-AUTH header (with value of the client.CurrentUser.MobileServiceAuthenticationToken) to get the proper thing."}}
{"actor":{"display_login":"adrianhall"}}