GET API timing out after 5 minutes when called via Azure Application

Sanil Davis 0 Reputation points
2023-11-14T10:13:02.6966667+00:00

Title

GET API timing out after 5 minutes when called via Azure Application.

Details

When calling a GET API through an Azure Application, the request is timing out automatically after 5 minutes. However, when calling the same request via Local Host, the API is being successfully retrieved. Attached is an image for reference:

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,453 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-12-04T23:36:28.0866667+00:00

    Hi @Sanil Davis

    To update the broader community, the timeout was being caused by the forward request your app service is making to your APIM. That request returns a large response which is taking more than initial timeout of 300 seconds, per stated by @Ben Gimblett . It was advised to improve processing of your request as well as extending the timeout of the request policy.

    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.