Trending on MSDN: Server time out error

Grmacjon-MSFT 16,101 Reputation points
2019-10-29T21:56:21.817+00:00

Hello,

I get the below error for Azure API App, service timeout when API takes more than 3.83 mins. Is there any way that I can increase the timeout? or do I have to go with the WebJobs approach as explained below. As per the below update from Microsoft. We can create webjobs and by API we can call it:

"230 seconds is the maximum amount of time that a request can take without sending any data back to the response. It is not configurable. For more details, refer to Time Out After 230 seconds. If your web app requires background processing, we recommend using Azure WebJobs. The Azure web app can call WebJobs and be notified when background processing is finished. You can choose from multiple methods for using WebJobs, including queues and triggers."

How can we call webjobs from API and pass JSON object to webjobs?

Sourced from MSDN

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,907 questions
{count} votes

Accepted answer
  1. bharathn-msft 5,086 Reputation points Microsoft Employee
    2019-10-29T22:39:45.18+00:00

    Currently , this is a default limit in Azure App Service. You cannot increase the 230 seconds timeout for Azure App Services. The suggested approach is to move to an async pattern like WebJobs or Azure Functions. You can follow this tutorial to get started with Azure Webjobs. Please let us know if you have further questions.

    Sourced from MSDN

    0 comments No comments

0 additional answers

Sort by: Most helpful