Closed cwinters-usds closed 2 years ago
AzureDiagnostics
| where TimeGenerated >= todatetime('2022-04-16T18:43:35.935Z') and TimeGenerated <= todatetime('2022-04-16T18:43:41')
and httpStatusCode_s == "503"
| project ResourceType, requestUri_s, timeTaken_s, backendHostname_s, OperationName, ErrorInfo_s
FunctionAppLogs
| where TimeGenerated >= todatetime('2022-04-16T18:43:35.935Z') and TimeGenerated <= todatetime('2022-04-16T18:43:41')
and FunctionInvocationId == "b3aad6c9-8e9d-403b-a174-ee138eec401a"
requests
| where timestamp >= todatetime('2022-04-16T18:43:35.935Z') and timestamp <= todatetime('2022-04-16T18:43:41')
| extend seconds=duration / 1000
| where customDimensions.InvocationId == "b3aad6c9-8e9d-403b-a174-ee138eec401a"
Issue:
Log:
Microsoft documented cause/solution:
Note: this solution appears to be for newer front door endpoint options and/or NOT CDN If requests going through Azure Front Door result in a 503 error response code, configure ❗Origin response timeout❗ (in seconds) for the endpoint. You can extend the default timeout to up to 4 minutes, which is 240 seconds. To configure the setting, go to Endpoint manager and select Edit endpoint.
OR
If the timeout doesn't resolve the issue, use a tool like Fiddler or your browser's developer tool to check if the client is sending byte range requests with
Accept-Encoding
headers. Using this option leads to the origin responding with different content lengths.If the client is sending byte range requests with Accept-Encoding headers, you have two options. You can disable compression on the origin/Azure Front Door. Or you can create a rules set rule to remove
Accept-Encoding
from the request for byte range requests.Community:
Multiple users have reported this issue happening at the same time:
Their issue is extremely similar to ours:
Theirs
Ours
Conclusion
Based on findings so far, the FrontDoor 503 error is caused by "timeTaken" of the request exceeding the seconds specified by the send/receive timeout value. This indicates that a response was not received by the front door before the request was terminated via the front door timeout. It is likely that something on the Azure end prevented the response from being received in less than 90 seconds.