Cloudflare Error Code 522
Cloudflare could not open a TCP connection to the origin in time.
Cloudflare could not open a TCP connection to the origin in time.
| Code | 522 |
| Product | Cloudflare |
| Company / origin | Cloudflare · United States |
| Category | Cloud & DevOps |
| Platform / versions | Cloudflare edge and origin · Current edge and origin |
| Severity | error |
| Official source | Cloudflare 5xx errors: Error 522 ↗ |
| Last verified | 2026-11-17 |
What does Cloudflare error 522 mean?
Cloudflare Error 522 means the edge could not complete the TCP handshake with the origin before the connection timeout. The origin may be offline, overloaded, dropping packets, or blocking Cloudflare IP addresses.
Common causes
- The origin server is down or not listening on the expected port.
- A firewall or hosting provider is dropping packets from Cloudflare.
- The origin is overloaded or the network path is unstable.
How to fix it
- Step 1
Verify the origin is online and listening on the expected IP and port.
- Step 2
Allow Cloudflare IP ranges through the firewall and hosting panel.
- Step 3
Check origin load and network latency, then retry from the Cloudflare dashboard.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
500 | Internal Server Error | The origin web server could not complete the request. |
520 | Web Server Returned an Unknown Error | The origin returned an empty, unknown or malformed response. |
Source & verification
This page was checked against Cloudflare 5xx errors: Error 522 on 2026-11-17. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Cloudflare. Always confirm destructive or security-sensitive steps with the official documentation.