{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/590","labels_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/590/comments","events_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/590/events","html_url":"https://github.com/google/google-api-dotnet-client/issues/590","id":103244803,"number":590,"title":"Drive with ServiceAccount hangs on first API call","user":{"login":"lukas-navratil","id":5661690,"avatar_url":"https://avatars.githubusercontent.com/u/5661690?v=3","gravatar_id":"","url":"https://api.github.com/users/lukas-navratil","html_url":"https://github.com/lukas-navratil","followers_url":"https://api.github.com/users/lukas-navratil/followers","following_url":"https://api.github.com/users/lukas-navratil/following{/other_user}","gists_url":"https://api.github.com/users/lukas-navratil/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas-navratil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas-navratil/subscriptions","organizations_url":"https://api.github.com/users/lukas-navratil/orgs","repos_url":"https://api.github.com/users/lukas-navratil/repos","events_url":"https://api.github.com/users/lukas-navratil/events{/privacy}","received_events_url":"https://api.github.com/users/lukas-navratil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-26T11:41:17Z","updated_at":"2015-09-03T00:42:57Z","closed_at":null,"body":"Hello,\r\n\r\nI upgraded Google Drive (and all dependencies) NuGet package to the latest version 1.9.3 and from that time the Drive is not working for me. Versions from 1.6 to 1.9.2 were working fine. I'm using it in ASP.NET MVC 5 project and I'm using synchronous calls.\r\n\r\nI'm using ServiceAccount, here it the initialiation of the driveService:\r\n\r\n    var initializer = new ServiceAccountCredential(new ServiceAccountCredential.Initializer(configuration.DriveApiClientId)\r\n            {\r\n                User = account.GetEmailAddress(),\r\n                Scopes = new[] { DriveService.Scope.Drive },\r\n            }.FromCertificate(key));\r\n\r\n            driveService = new DriveService(new BaseClientService.Initializer\r\n            {\r\n                HttpClientInitializer = initializer,\r\n                ApplicationName = \"TC6\",\r\n            });\r\n\r\nWhen I execute first Drive API command (I tried driveService.About.Get().Execute()) I can see in the Fiddler one completed request:\r\n\r\nPOST https://accounts.google.com/o/oauth2/token HTTP/1.1\r\n\r\nbut the result of the command is never returned, it seems that there is a deadlock but I can't find where. "},"comment":{"url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/comments/137283136","html_url":"https://github.com/google/google-api-dotnet-client/issues/590#issuecomment-137283136","issue_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/590","id":137283136,"user":{"login":"jtattermusch","id":9939684,"avatar_url":"https://avatars.githubusercontent.com/u/9939684?v=3","gravatar_id":"","url":"https://api.github.com/users/jtattermusch","html_url":"https://github.com/jtattermusch","followers_url":"https://api.github.com/users/jtattermusch/followers","following_url":"https://api.github.com/users/jtattermusch/following{/other_user}","gists_url":"https://api.github.com/users/jtattermusch/gists{/gist_id}","starred_url":"https://api.github.com/users/jtattermusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtattermusch/subscriptions","organizations_url":"https://api.github.com/users/jtattermusch/orgs","repos_url":"https://api.github.com/users/jtattermusch/repos","events_url":"https://api.github.com/users/jtattermusch/events{/privacy}","received_events_url":"https://api.github.com/users/jtattermusch/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T00:42:57Z","updated_at":"2015-09-03T00:42:57Z","body":"Without a demo app I wasn't able to reproduce this. I basically copy-pasted your code and things were working without any problems. \r\n\r\nI used a console app and removed \"User = account.GetEmailAddress()\" because my test project doesn't have user impersonation setup."}}