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: src/content/docs/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-522.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,9 @@ Two different timeouts cause HTTP error `522` depending on when they occur betwe
27
27
28
28
- If you are using [Cloudflare Pages](/pages/), verify that you have a custom domain set up and that your CNAME record is pointed to your [custom Pages domain](/pages/configuration/custom-domains/#add-a-custom-domain).
29
29
30
-
- If you are using [Workers with a Custom Domain](/workers/configuration/routing/custom-domains/), performing a `fetch` to its own hostname will cause a `522` error. Consider using a [Route](/workers/configuration/routing/) or target another hostname instead.
30
+
- If you are using [Workers with a Custom Domain](/workers/configuration/routing/custom-domains/), performing a `fetch` to its own hostname will cause a `522` error. Consider using a [Route](/workers/configuration/routing/), targeting another hostname, or enabling the [`global_fetch_strictly_public` compatibility flag](/workers/configuration/compatibility-flags/#global-fetch-strictly-public) instead.
31
31
32
32
- If none of the above leads to a resolution, request the following information from your hosting provider or site administrator before [contacting Cloudflare support](/support/contacting-cloudflare-support/):
33
33
34
34
- An [MTR or traceroute](/support/troubleshooting/general-troubleshooting/gathering-information-for-troubleshooting-sites/#perform-a-traceroute) from your origin web server to a [Cloudflare IP address](http://www.cloudflare.com/ips) that most commonly connected to your origin web server before the issue occurred. Identify a connecting Cloudflare IP recorded in the origin web server logs.
35
-
- Details from the hosting provider's investigation, such as pertinent logs or conversations with the hosting provider.
35
+
- Details from the hosting provider's investigation, such as pertinent logs or conversations with the hosting provider.
Copy file name to clipboardExpand all lines: src/content/docs/workers/observability/errors.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,18 @@ Review Workers errors and exceptions.
13
13
14
14
When a Worker running in production has an error that prevents it from returning a response, the client will receive an error page with an error code, defined as follows:
|`1042`| Worker tried to fetch from another Worker on the same zone, which is only [supported](/workers/runtime-apis/fetch/) when the [`global_fetch_strictly_public` compatibility flag](/workers/configuration/compatibility-flags/#global-fetch-strictly-public) is used. |
28
28
29
29
Other `11xx` errors generally indicate a problem with the Workers runtime itself. Refer to the [status page](https://www.cloudflarestatus.com) if you are experiencing an error.
30
30
@@ -255,10 +255,10 @@ The **Errors by invocation status** chart shows the number of errors broken down
255
255
256
256
The **Client disconnected by type** chart shows the number of client disconnect errors broken down into the following categories:
|`Response Stream Disconnected`| Connection was terminated during the deferred proxying stage of a Worker request flow. It commonly appears for longer lived connections such as [WebSockets](/workers/runtime-apis/websockets/). |
261
-
|`Cancelled`| The Client disconnected before the Worker completed its response. |
261
+
|`Cancelled`| The Client disconnected before the Worker completed its response. |
Copy file name to clipboardExpand all lines: src/content/docs/workers/runtime-apis/fetch.mdx
+50-58Lines changed: 50 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,21 @@ title: Fetch
4
4
head: []
5
5
description: An interface for asynchronously fetching resources via HTTP
6
6
requests inside of a Worker.
7
-
8
7
---
9
8
10
-
import { TabItem, Tabs } from"~/components"
9
+
import { TabItem, Tabs } from"~/components";
11
10
12
11
The [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides an interface for asynchronously fetching resources via HTTP requests inside of a Worker.
13
12
14
13
:::note
15
14
16
-
17
15
Asynchronous tasks such as `fetch` must be executed within a [handler](/workers/runtime-apis/handlers/). If you try to call `fetch()` within [global scope](https://developer.mozilla.org/en-US/docs/Glossary/Global_scope), your Worker will throw an error. Learn more about [the Request context](/workers/runtime-apis/request/#the-request-context).
18
16
19
-
20
17
:::
21
18
22
19
:::caution[Worker to Worker]
23
20
24
-
25
-
Worker-to-Worker `fetch` requests are possible with [Service bindings](/workers/runtime-apis/bindings/service-bindings/).
26
-
21
+
Worker-to-Worker `fetch` requests are possible with [Service bindings](/workers/runtime-apis/bindings/service-bindings/) or by enabling the [`global_fetch_strictly_public` compatibility flag](/workers/configuration/compatibility-flags/#global-fetch-strictly-public).
27
22
28
23
:::
29
24
@@ -33,28 +28,28 @@ Worker-to-Worker `fetch` requests are possible with [Service bindings](/workers/
0 commit comments