Azure Function - Internal server error

Anshul_7275 31 Reputation points
2023-09-26T14:24:16.22+00:00

We have an Azure Function (Runtime V3) running a .NET Core 3.1 application.
On several occasions, we receive HTTP Status code 500 Internal Server Error when executing HTTP Functions.
I've looked in several logs (AppInsights Exceptions, Log System, Kudu => Host Logfiles) but have not been able to find the root cause of the error. It's running on the Consumption plan so it could potentially be a 'noisy neighbor'. The local debugging works fine. But running on Azure (both via API call or test/Run in Function app blade) fails.

Is there some other log where I could find the actual root cause of the error?

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

Accepted answer
  1. navba-MSFT 23,620 Reputation points Microsoft Employee
    2023-09-27T02:54:17.98+00:00

    @Anshul_7275 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are encountering HTTP Status code 500 Internal Server Error when executing HTTP Functions. You have already looked in several logs (AppInsights Exceptions, Log System, Kudu => Host Logfiles) but have not been able to find the root cause of the error.

    Please follow the below action plan:

    1. Please check Functions metrics for the HTTP Server Errors at the time of the issue.

    User's image

    1. Please check the Function App detectors by navigating to the Diagnose and Solve Problems section in the Azure Portal for the Functions as shown below: You can rely on the Function App Down or Reporting Errors option and the Function App Health Check option as shown below:

    User's image

    More Info here.

    1. You can also query the FunctionLogs as shown below:

    User's image

    More Info here.

    Note: If none of the above steps help, Please share the below details over an email at AzCommunity@microsoft.com ( with subject "Attn: Naveen") and include the below details:

    • Your Azure Function Name
    • You Azure Function App resource URI in below format: /subscriptions/XXXXXXXXXX/resourceGroups/XXXXXX/providers/Microsoft.Web/sites/XXXXXX
    • Most recent UTC time of the actual issue where you received HTTP 500 error

    I will look at the backend logs to identify the root cause.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful

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.