This causes issues with using HttpContentFormDataExtensions.ReadAsFormDataAsync to parse form data. This eventually calls FormUrlEncodedMediaTypeFormatter.ReadFromStreamAsync, which is a thin wrapper over a synchronous implementation. The fix would be to write a proper async version.
I've recently switched over to Azure Functions v3 (core 3.1) and got hit by the new requirement that everything is synchronous: https://docs.microsoft.com/en-us/dotnet/core/compatibility/aspnetcore#http-synchronous-io-disabled-in-all-servers
This causes issues with using
HttpContentFormDataExtensions.ReadAsFormDataAsync
to parse form data. This eventually callsFormUrlEncodedMediaTypeFormatter.ReadFromStreamAsync
, which is a thin wrapper over a synchronous implementation. The fix would be to write a proper async version.