Azure function code runs successfully but throws error.

Ayush Shrivastava 120 Reputation points
2024-08-09T13:54:11.2366667+00:00

Function runs successfully but shows this error at the end.

2024-08-09T13:03:06Z [Error] Executed 'Functions.HttpExample' (Failed, Id=21e556e6-ceaf-4046-956d-b8d5dca2af46, Duration=316ms)

Error: {"message":"Load failed","isError":true}

Can someone help me with this ?

I am using java as run time env.

User's image

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

3 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,586 Reputation points MVP
    2024-08-14T11:58:55.52+00:00

    Yes so find Application Insights from the Azure Portal

    select the scope to your Function App and perform some executions so we can catch the error. Then in Application Insights in Transaction Search you will start seeing the logs :

    User's image

    --

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

  2. Ayush Shrivastava 120 Reputation points
    2024-08-16T13:49:31.5666667+00:00

    This issue is resolved now.
    It was happening because I was returning the response in a poorly formatted format.

    0 comments No comments

  3. Konstantinos Passadis 19,586 Reputation points MVP
    2024-08-16T14:11:52.45+00:00

    Hello @Ayush Shrivastava !

    Thats great !

    If our interaction was helpful kindly set the answer as Accepted and Upvote !

    For example if Application Insights helped you identify the issue please Accept the answer and comment as well!

    Thank you !

    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.