- Published on
- Authors
- koskila
How to fix "Unable to cast object of type 'System.Net.Http.HttpRequestMessage' to type 'Microsoft.AspNetCore.Http.HttpRequest'."
This article explains how to fix an issue where your Azure Functions function (yes, that's a capital F and a lowercase f to denote the difference between the product and the piece of compute) fails to fire when a POST request comes in, even though it's configured to do so, and instead throws a somewhat confusing error message about HttpRequestMessage not being castable to HttpRequest - even though you KNOW HttpRequestMessage works just fine for receiving POST requests with payload!
























