Function App Error - Encountered an error (InternalServerError) from host runtime. Also multiple HTTP 4xx and 5xx errors

Ella Moody 0 Reputation points
2024-07-03T18:39:17.3733333+00:00

I can successfully deploy a timer trigger function to Azure but it will not display in the overview, and the only details of the error are Encountered an error (InternalServerError) from host runtime. There are no errors in the activity log. When looking in the diagnostic services, multiple HTTP 4XX and sometimes 5XX errors are issued. The screenshot below only lists one HTTP 400 error but I have gotten 500 and 503. The only other diagnostic concern raised is for the function not triggering.

I am trying to use key vault, storage, app insights, and an Azure database with this function.
Running .NET 8
Somewhat new to Azure

Other people with similar problems used a premium function plan instead of the consumption one, but that plan is far outside our budget range. Is there any other work around for this issue?

Screenshot 2024-07-03 133031

Screenshot 2024-07-03 133141

Screenshot 2024-07-03 133415

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

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,545 Reputation points Microsoft Employee Moderator
    2024-07-10T06:32:44.1833333+00:00

    @Ella Moody I'm glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this. Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    . Issue:

    You're encountering Function App Error - Encountered an error (InternalServerError) from host runtime. Also multiple HTTP 4xx and 5xx errors.

    . Resolution:

    You updating all the NuGet packages and it worked fine.

    .

    What if the issue resurfaces again?

    Please share the below details:

    1. Function App Resource URI in below format:
      /subscriptions/XXXXX/resourceGroups/XXXX/providers/Microsoft.Web/sites/XXXXX
    2. Time of the issue in UTC
    3. Screenshot of the error/exception from Function App Down or Reporting Errors section.
    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.