Your app crashed because of System.NullReferenceException

Ankush Gurjar 165 Reputation points
2024-05-14T04:53:52.0366667+00:00

Hello Team,

I got an alert, can you please let me know how to check what is the impact and how to resolve the alert and what is the alert regarding.

alert-Your app, acgi-prod-fnapp-torrentpharma, crashed because of System.NullReferenceException and aborted the requests it was processing when the overflow occurred. As a result, your app’s users may have experienced HTTP 502 errors.

Regards

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

Accepted answer
  1. Sander van de Velde | MVP 33,396 Reputation points MVP
    2024-05-14T05:34:39.1333333+00:00

    Hello @Ankush Gurjar ,

    welcome to this moderated Azure community forum.

    Based on the 'System.NullReferenceException' exception, the code in your function tried to read a variable, sub variable, or parameter that was instantiated.

    You need to debug your code to see where the call was made.

    If you use Azure Application Insights, you can probably drill down to the trace log with more details.

    It's also recommended to use a try-catch block so you can catch errors loke this for a more graceful flow.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

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.