{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/Azure-Functions/issues/338","repository_url":"https://api.github.com/repos/Azure/Azure-Functions","labels_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/338/comments","events_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/338/events","html_url":"https://github.com/Azure/Azure-Functions/issues/338","id":235918761,"number":338,"title":"Http Function input always has a null content","user":{"login":"Samwise001","id":22894372,"avatar_url":"https://avatars1.githubusercontent.com/u/22894372?v=3","gravatar_id":"","url":"https://api.github.com/users/Samwise001","html_url":"https://github.com/Samwise001","followers_url":"https://api.github.com/users/Samwise001/followers","following_url":"https://api.github.com/users/Samwise001/following{/other_user}","gists_url":"https://api.github.com/users/Samwise001/gists{/gist_id}","starred_url":"https://api.github.com/users/Samwise001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samwise001/subscriptions","organizations_url":"https://api.github.com/users/Samwise001/orgs","repos_url":"https://api.github.com/users/Samwise001/repos","events_url":"https://api.github.com/users/Samwise001/events{/privacy}","received_events_url":"https://api.github.com/users/Samwise001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-14T15:26:25Z","updated_at":"2017-06-28T19:58:04Z","closed_at":null,"body":"I've been at this one 2 days now and I'm getting absolutely nowhere.\r\n\r\nI'm doing a pre-compiled function app. Its brought in the following nugets:\r\nFare \r\n  Microsoft.AspNet.WebApi.Client \r\n  Microsoft.Azure.KeyVault.Core \r\n  Microsoft.Azure.WebJobs \r\n  Microsoft.Azure.WebJobs.Core \r\n  Microsoft.Azure.WebJobs.Extensions \r\n  Microsoft.CodeDom.Providers.DotNetCompilerPlatform \r\n  Microsoft.Data.Edm \r\n  Microsoft.Data.OData \r\n  Microsoft.Data.Services.Client \r\n  Microsoft.Net.Compilers ncy=true />\r\n  Microsoft.Tpl.Dataflow \r\n  Microsoft.WindowsAzure.ConfigurationManager \r\n  ncrontab \r\n  Newtonsoft.Json \r\n  RestSharp \r\n  StackExchange.Redis \r\n  System.ComponentModel.EventBasedAsync \r\n  System.Dynamic.Runtime \r\n  System.Linq.Queryable \r\n  System.Net.Http \r\n  System.Net.Requests \r\n  System.Security.Cryptography.Algorithms \r\n  System.Security.Cryptography.Encoding \r\n  System.Security.Cryptography.Primitives \r\n  System.Security.Cryptography.X509Certificates \r\n  System.Spatial \r\n  WindowsAzure.ServiceBus \r\n  WindowsAzure.Storage \r\n\r\nMy code looks like:\r\n    public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, IAsyncCollector<UserPasswordChangeRequest> itemForQueue, TraceWriter log)\r\n        {\r\n            if (req.Content == null) // Always fails here\r\n                return new HttpResponseMessage(HttpStatusCode.BadRequest);\r\n\r\n    ... never gets further\r\n\r\nI can add my content into the test pane on the right, with POST selected, and it always has a null content.\r\n\r\nI've got this created via ARM so I've recreated the resource group many times, no change.\r\n\r\nI have several other apps set up that as far as I can tell are identical that work...\r\n\r\nIf I got an error or something it would be a start, but nothing, I'm about ready to give up and choose another tech TBH"},"comment":{"url":"https://api.github.com/repos/Azure/Azure-Functions/issues/comments/311770094","html_url":"https://github.com/Azure/Azure-Functions/issues/338#issuecomment-311770094","issue_url":"https://api.github.com/repos/Azure/Azure-Functions/issues/338","id":311770094,"user":{"login":"lindydonna","id":4260261,"avatar_url":"https://avatars1.githubusercontent.com/u/4260261?v=3","gravatar_id":"","url":"https://api.github.com/users/lindydonna","html_url":"https://github.com/lindydonna","followers_url":"https://api.github.com/users/lindydonna/followers","following_url":"https://api.github.com/users/lindydonna/following{/other_user}","gists_url":"https://api.github.com/users/lindydonna/gists{/gist_id}","starred_url":"https://api.github.com/users/lindydonna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindydonna/subscriptions","organizations_url":"https://api.github.com/users/lindydonna/orgs","repos_url":"https://api.github.com/users/lindydonna/repos","events_url":"https://api.github.com/users/lindydonna/events{/privacy}","received_events_url":"https://api.github.com/users/lindydonna/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T19:58:04Z","updated_at":"2017-06-28T19:58:04Z","body":"@fabiocav Can you comment on why System.Net.Http doesn't seem to work if on the latest version?\r\n\r\nAt any rate, @Samwise001 I think you have a workaround, which is to downgrade to the version of System.Net.Http that is specified as the dependency of the NuGet package [Microsoft\\.Azure\\.WebJobs\\.Extensions\\.Http](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.Http/1.0.0-beta1).\r\n\r\nWe don't support binding redirects, so you can't use arbitrary NuGet packages. For instance, if you use a later version of the Azure Storage NuGet package, most things will not work."}}
{"actor":{"display_login":"lindydonna"}}