Azure function App 500 errors after few minutes of being deployed

Jacob Veasey 0 Reputation points
2023-06-27T18:02:10.1266667+00:00

Hello, We are currently experiencing 500 internal server errors after deploying our function app. The app will work fine for ~10 minutes but will eventually start returning 500 internal server error for every function. The function app has been running fine for nearly a year and we didn't deploy any changes when this started happening. We've tried just about everything we could think of and haven't been able make any progress. Anytime we change a key, add a secret, or do any redeployment it proceeds to work for 10 minutes then returns to failing

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. MayankBargali-MSFT 70,941 Reputation points Moderator
    2023-06-29T07:01:46.25+00:00

    @Jacob Veasey Thanks for reaching out. As per your analysis, you have mentioned that when there is less function than it works fine where with the larger number of functions in a single function app you get 500 errors.

    It looks like there might be resource crunch issue such as memory where you might be getting out of memory exception resulting in 500 errors as the consumption plan has limited memory similarly if you are using app service plan then also it will have a limit of memory.

    This could be one of the possible causes as per the analysis that you have observed. To know the cause of the issue/more details on the 500 error I will suggest you to review the Diagnose and solve problem blade on your function app to troubleshoot the 500 error and the action plan to resolve the issue if there are any. You can also review the application insights logs to know more details/exception trace on the 500 errors.

    In case if you need any help in verifying the logs then please let me know.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.

    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.