azure-functions-host: Random errors across every single Python HttpTrigger Azure Function in Function App

We have started encountering random, intermittent errors across every single one of our HttpTrigger Azure Functions which are coded in Python. The log streaming service shows only this vague Exception when the issue occurs while executing a given function:

Functions.<my function name>. Microsoft.Azure.WebJobs.Script: .

In looking at the logs under Monitoring, I was able to dig out this call stack:

Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: Functions.<my function name> ---> System.ApplicationException
   at async Microsoft.Azure.WebJobs.Script.Description.ScriptFunctionInvoker.ExecuteScriptAsync(String path,String arguments,Object[] invocationParameters,FunctionInvocationContext context) at C:\\azure-webjobs-sdk-script\\src\\WebJobs.Script\\Description\\Script\\ScriptFunctionInvoker.cs : 0
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Script.Description.ScriptFunctionInvoker.InvokeCore(Object[] parameters,FunctionInvocationContext context) at C:\\azure-webjobs-sdk-script\\src\\WebJobs.Script\\Description\\Script\\ScriptFunctionInvoker.cs : 55
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Script.Description.FunctionInvokerBase.Invoke(Object[] parameters) at C:\\azure-webjobs-sdk-script\\src\\WebJobs.Script\\Description\\FunctionInvokerBase.cs : 171
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`1.InvokeAsync[TReflected](Object[] arguments)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.InvokeAsync(IFunctionInvoker invoker,ParameterHelper parameterHelper,CancellationTokenSource timeoutTokenSource,CancellationTokenSource functionCancellationTokenSource,Boolean throwOnTimeout,TimeSpan timerInterval,IFunctionInstance instance)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ExecuteWithWatchersAsync(IFunctionInstance instance,ParameterHelper parameterHelper,TraceWriter traceWriter,ILogger logger,CancellationTokenSource functionCancellationTokenSource)
   at System.Runtime.Exception…

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 23 (5 by maintainers)

Most upvoted comments

@StephenThomson apologies for the delay on this. The notification was completely missed.

@sergei3000 so you started experiencing this on the version immediately after 1.0.11027?

@StephenThomson based on your initial report, I’m assuming this issue started more recently for you, correct?

Hi everyone, It seems that changing runtime version of your Functions app to the earlier one may fix this. It did work for my function. I set the version to the one that worked before the release that was pulled before this issue was opened. Namely I am using version 1.0.11027 of July 14. Here’s how to deal with runtime versions in Functions apps: https://docs.microsoft.com/en-us/azure/azure-functions/functions-versions And here you can find info on the Functions releases: https://github.com/Azure/azure-webjobs-sdk-script/releases Hope this helps.