Azure static web apps - Application insights periodically states "Failed to fetch functions for your app."

Donnie Graham 5 Reputation points
2023-03-17T22:31:52.5566667+00:00

Our static web apps functions periodically seem to break, we are using the default functions (it happened 3x this week alone).

In the portal the application insights tab states "Failed to fetch functions for your app", this seems to fix itself in a couple of hours without us making any changes.

User's image

The web app is still up and running but the GetRoles built-in method in the app does not work until the issue fixes itself.

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

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 18,806 Reputation points
    2023-03-29T16:34:20.22+00:00

    @Donnie Graham sorry to hear you're facing this problem. you mentioned this issue fixed itself in the portal, are you getting any other error messages?

    According to this Azure documentation -You can use Application Insights to find runtime error messages. If you do not already have an instance created, refer to Monitoring Azure Static Web Apps. Application Insights logs the full error message and stack trace generated by each error. You can only view error messages that are generated after Application Insights is installed.

    Inside the Azure portal, open the Resource Group associated with your static web app.

    Select the Application Insights instance, which has the same name as your static web app (if created using the steps above).

    Under Investigate, select Failures. Scroll down to Drill into on the right.

    In the lower right corner, under Drill into, a button displays the number of recently failed operations.

    Select x Operations to open a panel displaying the recent failed operations. Explore an error by selecting one from the list.

    hope that helps.


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.