question

Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT asked bharathn-msft edited

Trending on MSDN: Server time out error

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-webappsazure-webapps-availability
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

bharathn-msft avatar image
0 Votes"
bharathn-msft answered bharathn-msft edited

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.