Azure / azure-functions-templates

Azure functions templates for the azure portal, CLI, and VS
MIT License
340 stars 193 forks source link

Update .NET isolated templates to make sure we're using async patterns when working with HttpRequestData #1509

Open kshyju opened 5 months ago

kshyju commented 5 months ago

Update .NET isolated templates to make sure we're using async patterns when working with HttpRequestData

See https://github.com/Azure/azure-functions-dotnet-worker/issues/2184

ChristopherL-STCU commented 4 months ago

I just hit this when using the DurableFunctionsOrchestration-CSharp-Isolated. I received the error:

Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead

After researching this I understood I needed to update CreateCheckStatusResponse to CreateCheckStatusResponseAsync.

EntityAdam commented 3 months ago

Ran into this issue with the out-of-box experience. Terrible developer experience.

Track fix here: https://github.com/Azure/azure-functions-templates/pull/1512