I need help in troubleshooting http 424,504,400 errors and other exceptions for function app.

Prabha 236 Reputation points
2023-04-21T07:41:46.7233333+00:00

We are facing issues with the http 4xx and 5xx errors and exceptions for our function app(connected to APIM) and also serves as external api to client network and hence gets 4xx. Also find there exceptions in App Insights : One or more errors occurred. (Object reference not set to an instance of an object.   Error while retrieving data from the Cache for a key SCPAccessToken.   Could you please help me in finding the root cause.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,801 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,370 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,421 Reputation points
    2023-04-25T05:38:01.11+00:00

    @Prabha Thanks for reaching out.

    As per the error messgae "Object reference not set to an instance of an object.   Error while retrieving data from the Cache for a key SCPAccessToken" it looks like the object is null and you are trying to access the value of this object for the key SCPAccessToken. The stack trace will have more details on the exact line and which piece of code is throwing this error. You can review the application insights logs to get the stack trace or you can also review the diagnostic and solve problem blade on your function app that will give more details on the exception and the mitigation steps if any.

    Feel free to get back to me if you need any assistance.

    0 comments No comments

0 additional answers

Sort by: Most helpful