What is the reason of the function app error 'We were not able to load some functions in the list due to errors. Refresh the page to try again.'

suah cho 0 Reputation points
2024-11-20T06:05:21.3533333+00:00

I am trying to deploy a new version of my function app using Github actions.

I created a new HTTP trigger, deployed it to the dev slot, and confirmed that is works correctly. Then, I deployed the same update to the production slot using Github Actions as well. But, the following error occurs only in the production slot:

Screenshot 2024-11-20 at 15.02.21Screenshot 2024-11-20 at 15.02.41

Previously, the app had a blob trigger and timer trigger, and the HTTP trigger is using the same environment variables that were already in use by those triggers. Currently, I replaced the dev slot with the production slot, and while the trigger has been created, the error still persists when I refresh.

I would like to know what could be causing this issue, how I can check for the cause, and what steps I can take to resolve it.

Thank you for your help!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,723 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Pinaki Ghatak 5,595 Reputation points Microsoft Employee
    2024-11-20T09:13:47.3266667+00:00

    Hello @suah cho

    This error message usually occurs when there is an issue with the function app code or configuration. To troubleshoot this issue, you can try the following steps:

    1. Check the logs for any errors or warnings related to the function app. You can access the logs from the Azure portal by navigating to your function app, selecting "Functions" from the left-hand menu, and then selecting "Logs" from the top menu.
    2. Check the function app configuration to ensure that all the required environment variables are set correctly. You can access the configuration from the Azure portal by navigating to your function app, selecting "Configuration" from the left-hand menu, and then selecting "Application settings" from the top menu.
    3. Check the function app code to ensure that there are no syntax errors or other issues that could be causing the error. You can access the code from the Azure portal by navigating to your function app, selecting "Functions" from the left-hand menu, and then selecting the function that is causing the error.
    4. Try redeploying the function app to see if that resolves the issue. You can redeploy the function app from the Azure portal or using Github Actions.

    I hope this helps.

    1 person found this answer helpful.

  2. riov tech 0 Reputation points
    2025-05-04T06:08:49.4933333+00:00

    I also experienced the same error while deploying the Function app in Azure portal. My Function app was not getting listed. I did the restart many times but throwed the same error. To investigate further, I accessed the Kudu Console (Advanced Tools) for my Azure Function App. Here’s what I discovered:

    • Inside the wwwroot folder, the .azurefunctions directory was missing—a critical part of the build. Screenshot 2025-05-04 084149

    The app setting WEBSITE_RUN_FROM_PACKAGE had conflicting values:

    In App Settings (Kudu): WEBSITE_RUN_FROM_PACKAGE was set to 0

    But In Environment Variables: It was set to 1

    So, This mismatch was preventing the function app from deploying and running correctly. Ideally, WEBSITE_RUN_FROM_PACKAGE should be set to 1 to ensure Azure pulls the app package correctly during every deployment.

    For resolving I followed below steps :

    https://riovtech.com/fix-we-were-not-able-to-load-some-functions-error-in-net-isolated-azure-function-deployment/

    Hope this Helps 🙂 !

    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.