0

I see that people usually say the max request timeout is 240 seconds, but on my Container for Webapps app service, the max request time is 10 seconds before resulting in a 500 error.

Is there a way to increase this lower 10 second max to be closer to the true max of 240 sec?

AjayKumar
  • 2,812
  • 1
  • 9
  • 28
grepsedawk
  • 3,324
  • 2
  • 26
  • 49
  • 1
    Are you sure your 500 error is being caused by a timeout? – Sam Axe Jun 18 '20 at 17:38
  • @SamAxe Yes. it loops over a CSV and at smaller row counts it works fine. If I upload a short CSV, it times out after 10 sec. – grepsedawk Jun 18 '20 at 18:00
  • Can you try some sort of sleep operation in the api implementation and check again? I am expecting there might be some other issue than 10 sec timeout (maybe memory issue or something else which is giving 500) – Atul Jun 19 '20 at 01:29
  • @Atul, with a sleep it does the same thing. – grepsedawk Jun 22 '20 at 12:07
  • @grepsedawk - in the sample api you did no computation but just sleep and still it timedout after 10 sec? – Atul Jun 23 '20 at 18:30

1 Answers1

-1

You can configure the amount of time for Azure App Service custom container by setting the WEBSITES_CONTAINER_START_TIME_LIMIT App Setting to the value you want.

Default Value = 230 Sec.

Max Value= 1800 Sec

Hope this documentation helps.

AjayKumar
  • 2,812
  • 1
  • 9
  • 28