Static Web Apps: Managed Functions returning "Function host is not running"

Stuart Leeks 81 Reputation points
2022-01-03T16:10:18.267+00:00

I have deployed a Static Web App with Managed Functions and whenever I call the /api endpoints, I get a 503 response with content "Function host is not running".

I've enabled App Insights integration, but all I see in the logs there is "A host error has occurred during startup operation 'faa622eb-6fcb-4948-9c19-0d03824f0547'."

How can I get more information on what is causing this issue so that I can resolve it?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,005 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,926 Reputation points
    2022-01-05T10:20:01.707+00:00

    Thanks for reply! Which language you are using? Static Web Apps' managed function apps don't support all languages or language versions that Azure Functions supports. For managed functions the Azure Functions app must either be in Node.js 12, .NET Core 3.1, .NET 6.0, or Python 3.8.

    You may refer to this article and step-by-step guides to troubleshooting deployment and other issues for your static web app.
    You may use Application Insights to find runtime error messages.
    Refer to Monitoring Azure Static Web Apps. Application Insights logs the full error message and stack trace generated by each error.

    Let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.