Cloudflare · Connection Timed Out

Cloudflare Error Code 522

Cloudflare could not open a TCP connection to the origin in time.

errorLast verified 2026-11-17Cloudflare 5xx errors: Error 522
Quick answer

Cloudflare could not open a TCP connection to the origin in time.

Code522
ProductCloudflare
Company / originCloudflare · United States
CategoryCloud & DevOps
Platform / versionsCloudflare edge and origin · Current edge and origin
Severityerror
Official sourceCloudflare 5xx errors: Error 522 ↗
Last verified2026-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

  1. Step 1

    Verify the origin is online and listening on the expected IP and port.

  2. Step 2

    Allow Cloudflare IP ranges through the firewall and hosting panel.

  3. Step 3

    Check origin load and network latency, then retry from the Cloudflare dashboard.

When to escalate

Before you escalate: If the same Cloudflare 5xx code persists after checking the origin logs and temporarily pausing Cloudflare, contact the hosting provider with the exact code, URL, timestamp and cf-ray, plus HAR files with Cloudflare enabled and paused.

Related codes

CodeNameWhat it means
500Internal Server ErrorThe origin web server could not complete the request.
520Web Server Returned an Unknown ErrorThe 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.