I’m having an issue with the timeout of my application gateway waf v2.
I set the timeout to 220 sec as showed in the following picture
but im getting a 504 gateway timeout of a particular request at 100 seconds.
Do I need to have any other consideration for make this timeout possible?
[UPDATE]
The error is a 504.0 Gateway timeout.
If I force this error, putting a wait statement on my SP, the error is just a 504 Azure Gateway Timeout
Thanks in advance
2
Answers
The error
504
gateway timeout usually occurs when one or more servers could not complete the request within the allotted time and does not receive a timely response from gateway.Please note that:
To resolve the issue, please contact Azure Support.
For more information, please refer below links:
azure public ip – Causes for Application Gateway Connection Timeout – Stack Overflow
Random 504 Gateway timeout while doing load test with application gateway – Microsoft Q&A
Most probably this is happening from your app service and not from the gateway.
Since you are getting a timeout at 100 sec, this may be from the default http timeout. you can check the application gateway request timeout is set correctly by the below .
if this is coming out as expected (230 sec), then you need to see your app service.
For example, if your backend is configured in azure app services, the typical deployment will be based on IIS and the default connection timeout is 2 minutes.
You can override the behavior of the app service. If it is in azure app service, you can use XDT to change the connection timeout attribute of weblimit .
If it is a.NET application that serves the request that you have mentioned and uses HTTP client, then the default timeout is 100sec. You should set a request timeout value that is greater than your application gateway
https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.timeout?view=net-6.0