Skip to content

Commit fc371f7

Browse files
Merge pull request #233409 from duongau/afdtroubleshooting
Azure Front Door - Troubleshooting issue - freshness update
2 parents 060053c + d5b67bf commit fc371f7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/frontdoor/troubleshoot-issues.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Troubleshoot Azure Front Door common issues
3-
description: In this tutorial, you'll learn how to troubleshoot some of the common problems that you might face for your Azure Front Door instance.
3+
description: In this article, you learn how to troubleshoot some of the common problems that you might face for your Azure Front Door instance.
44
services: frontdoor
55
author: duongau
66
ms.service: frontdoor
77
ms.topic: how-to
8-
ms.date: 11/12/2021
8+
ms.date: 04/04/2023
99
ms.author: duau
1010
---
1111

@@ -15,35 +15,35 @@ This article describes how to troubleshoot common routing problems that you migh
1515

1616
## Other debugging HTTP headers
1717

18-
You can request Azure Front Door to return more debugging HTTP response headers. For more information, see [optional response headers](front-door-http-headers-protocol.md#optional-debug-response-headers).
18+
You can request Azure Front Door to return extra debugging HTTP response headers. For more information, see [optional response headers](front-door-http-headers-protocol.md#optional-debug-response-headers).
1919

2020
## 503 or 504 response from Azure Front Door after a few seconds
2121

2222
### Symptom
2323

24-
* Regular requests sent to your backend without going through Azure Front Door are succeeding. Going via Azure Front Door results in 503 or 504 error responses.
24+
* Regular requests sent to your backend without going through Azure Front Door are succeeding. Going through the Azure Front Door results in 503 or 504 error responses.
2525
* The failure from Azure Front Door typically appears after about 30 seconds.
2626
* Intermittent 503 errors appear with "ErrorInfo: OriginInvalidResponse."
2727

2828
### Cause
2929

30-
The cause of this problem can be one of three things:
30+
The cause of this issue can be one of three things:
3131

32-
* Your origin is taking longer than the timeout configured to receive the request from Azure Front Door. The default is 30 seconds.
32+
* Your origin is taking longer than the timeout configured to receive the request from Azure Front Door. The default timeout is 30 seconds.
3333
* The time it takes to send a response to the request from Azure Front Door is taking longer than the timeout value.
3434
* The client sent a byte range request with an **Accept-Encoding** header, which means compression is enabled.
3535

3636
### Troubleshooting steps
3737

38-
* Send the request to your backend directly without going through Azure Front Door. See how long your backend usually takes to respond.
39-
* Send the request via Azure Front Door and see if you're getting any 503 responses. If not, the problem might not be a timeout issue. Contact support.
40-
* If requests going through Azure Front Door result in a 503 error response code, configure **Origin response timeout (in seconds)** for Azure Front Door. You can extend the default timeout to up to 4 minutes, which is 240 seconds. To configure the setting, go to overview page of the Front Door profile. Select **Origin response timeout** and enter a value between *16* and *240* seconds.
38+
* Send the request to your origin directly without going through Azure Front Door. See how long your origin normally takes to respond.
39+
* Send the request through Azure Front Door and see if you're getting any 503 responses. If not, the problem may not be a timeout issue. Create a support request to troubleshoot the issue further.
40+
* If requests going through Azure Front Door result in a 503 error response code then configure the **Origin response timeout** for Azure Front Door. You can increase the default timeout to up to 4 minutes (240 seconds). To configure the setting, go to overview page of the Front Door profile. Select **Origin response timeout** and enter a value between *16* and *240* seconds.
4141

4242
:::image type="content" source="./media/how-to-configure-endpoints/origin-timeout.png" alt-text="Screenshot of the origin timeout settings on the overview page of the Azure Front Door profile.":::
4343

44-
* 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.
44+
* If increasing 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.
4545

46-
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.
46+
If the client is sending byte range requests with **Accept-Encoding** headers, you have two options. The first option is to disable compression on the origin or Azure Front Door. The second option is to create a rules set rule to remove **Accept-Encoding** from the request for byte range requests.
4747

4848
:::image type="content" source="./media/troubleshoot-issues/remove-encoding-rule.png" alt-text="Screenshot that shows the Accept-Encoding rule in a rule set.":::
4949

@@ -104,7 +104,7 @@ The cause of this problem can be one of three things:
104104

105105
### Cause
106106

107-
The problem occurs if you didn't configure a routing rule for the custom domain that was added as the frontend host. A routing rule needs to be explicitly added for that frontend host. That's true even if a routing rule was already configured for the frontend host under the Azure Front Door subdomain, which is ***.azurefd.net**.
107+
The problem occurs if you didn't configure a routing rule for the custom domain that was added as the frontend host. A routing rule needs to be explicitly added for that frontend host. You need to create the rule even if a routing rule was already configured for the frontend host under the Azure Front Door subdomain, which is ***.azurefd.net**.
108108

109109
### Troubleshooting step
110110

@@ -141,7 +141,7 @@ Responses to these requests might also contain an HTML error page in the respons
141141

142142
There are several possible causes for this symptom. The overall reason is that your HTTP request isn't fully RFC-compliant.
143143

144-
An example of noncompliance is a `POST` request sent without either a **Content-Length** or a **Transfer-Encoding** header. An example would be using `curl -X POST https://example-front-door.domain.com`. This request doesn't meet the requirements set out in [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.3.2). Azure Front Door would block it with an HTTP 411 response. Such requests will not be logged.
144+
An example of noncompliance is a `POST` request sent without either a **Content-Length** or a **Transfer-Encoding** header. An example would be using `curl -X POST https://example-front-door.domain.com`. This request doesn't meet the requirements set out in [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.3.2). Azure Front Door would block it with an HTTP 411 response. Such requests don't get logged.
145145

146146
This behavior is separate from the web application firewall (WAF) functionality of Azure Front Door. Currently, there's no way to disable this behavior. All HTTP requests must meet the requirements, even if the WAF functionality isn't in use.
147147

0 commit comments

Comments
 (0)