You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/frontdoor/troubleshoot-issues.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
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.
4
4
services: frontdoor
5
5
author: duongau
6
6
ms.service: frontdoor
7
7
ms.topic: how-to
8
-
ms.date: 11/12/2021
8
+
ms.date: 04/04/2023
9
9
ms.author: duau
10
10
---
11
11
@@ -15,35 +15,35 @@ This article describes how to troubleshoot common routing problems that you migh
15
15
16
16
## Other debugging HTTP headers
17
17
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).
19
19
20
20
## 503 or 504 response from Azure Front Door after a few seconds
21
21
22
22
### Symptom
23
23
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.
25
25
* The failure from Azure Front Door typically appears after about 30 seconds.
26
26
* Intermittent 503 errors appear with "ErrorInfo: OriginInvalidResponse."
27
27
28
28
### Cause
29
29
30
-
The cause of this problem can be one of three things:
30
+
The cause of this issue can be one of three things:
31
31
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.
33
33
* The time it takes to send a response to the request from Azure Front Door is taking longer than the timeout value.
34
34
* The client sent a byte range request with an **Accept-Encoding** header, which means compression is enabled.
35
35
36
36
### Troubleshooting steps
37
37
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.
41
41
42
42
:::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.":::
43
43
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.
45
45
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.
47
47
48
48
:::image type="content" source="./media/troubleshoot-issues/remove-encoding-rule.png" alt-text="Screenshot that shows the Accept-Encoding rule in a rule set.":::
49
49
@@ -104,7 +104,7 @@ The cause of this problem can be one of three things:
104
104
105
105
### Cause
106
106
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**.
108
108
109
109
### Troubleshooting step
110
110
@@ -141,7 +141,7 @@ Responses to these requests might also contain an HTML error page in the respons
141
141
142
142
There are several possible causes for this symptom. The overall reason is that your HTTP request isn't fully RFC-compliant.
143
143
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.
145
145
146
146
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.
0 commit comments