{"action":"opened","issue":{"url":"https://api.github.com/repos/JoeMayo/LinqToTwitter/issues/154","repository_url":"https://api.github.com/repos/JoeMayo/LinqToTwitter","labels_url":"https://api.github.com/repos/JoeMayo/LinqToTwitter/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/JoeMayo/LinqToTwitter/issues/154/comments","events_url":"https://api.github.com/repos/JoeMayo/LinqToTwitter/issues/154/events","html_url":"https://github.com/JoeMayo/LinqToTwitter/issues/154","id":394128534,"node_id":"MDU6SXNzdWUzOTQxMjg1MzQ=","number":154,"title":"Media Upload doesn't work in MVC or Web API app","user":{"login":"intergleam","id":2155554,"node_id":"MDQ6VXNlcjIxNTU1NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2155554?v=4","gravatar_id":"","url":"https://api.github.com/users/intergleam","html_url":"https://github.com/intergleam","followers_url":"https://api.github.com/users/intergleam/followers","following_url":"https://api.github.com/users/intergleam/following{/other_user}","gists_url":"https://api.github.com/users/intergleam/gists{/gist_id}","starred_url":"https://api.github.com/users/intergleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intergleam/subscriptions","organizations_url":"https://api.github.com/users/intergleam/orgs","repos_url":"https://api.github.com/users/intergleam/repos","events_url":"https://api.github.com/users/intergleam/events{/privacy}","received_events_url":"https://api.github.com/users/intergleam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-26T09:43:48Z","updated_at":"2018-12-26T09:43:48Z","closed_at":null,"author_association":"NONE","body":"Following code works fine in a console app but hangs in a web project. Sample attached\r\n\r\n```\r\n            var auth = new SingleUserAuthorizer()\r\n            {\r\n                CredentialStore = new SingleUserInMemoryCredentialStore\r\n                {\r\n                    ConsumerKey = \"xxx\",\r\n                    ConsumerSecret = \"xxx\",\r\n                    AccessToken = \"xxx\",\r\n                    AccessTokenSecret = \"xxx\"\r\n                },\r\n            };\r\n            var twitterCtx = new TwitterContext(auth);\r\n            auth.AuthorizeAsync().Wait();\r\n            string status =\r\n                \"Testing video upload tweet #Linq2Twitter £ \" +\r\n                DateTime.Now.ToString(CultureInfo.InvariantCulture);\r\n            var fileName = Server.MapPath(\"~/content/111.mp4\");\r\n            var bytes = System.IO.File.ReadAllBytes(fileName);\r\n\r\n            //works fine\r\n            var rr = twitterCtx.TweetAsync(\"test: \"+DateTime.UtcNow).Result; \r\n\r\n            //hangs\r\n            var media = twitterCtx.UploadMediaAsync(bytes, \"video/mp4\", \"tweet_video\").Result;\r\n```\r\n[testmediaupload.zip](https://github.com/JoeMayo/LinqToTwitter/files/2709964/testmediaupload.zip)\r\n"}}
{"actor":{"display_login":"intergleam"}}