We are running Azure Functions using .Net 8 as Isolated Process with two slots: production and staging. We first deploy to staging and then swap it to production though we have started observing very slow and some times even swaps that fails. I have been able to find an error that reoccurs in Deployment Center:
Unexpected internal error:
System.ServiceModel.Web.WebFaultException`1[Microsoft.Web.Hosting.Administration.ErrorEntity]:
Bad Request (Fault Detail is equal to Code: BadRequest, ExtendedCode:
HttpContext.Current is null object is not present in the request body., Message: 01008).
This is my best indication that something goes wrong as I can’t see anything in Application Insights. I have been trying hard to identify where the exception might occur but I can not see any references to HttpContext.Current
in our codebase.