HTTP 522 Cloudflare Connection Timed Out

An edge network tester waits for a silent origin port

Cloudflare returns 522 when it times out contacting the origin. The edge can reach a deadline while waiting for the TCP connection to establish or while waiting for data after it establishes that connection.

Check whether the attempt reached the origin

Compare edge timing with firewall, load-balancer and server logs. Dropped traffic, an incorrect origin address or resource pressure can affect whether the origin acknowledges a connection and starts returning data. Check the exact origin address and port configured for the affected hostname.

Distinguish a later origin response deadline

If the origin accepted the connection and the HTTP processing or transfer then ran too long, Cloudflare can return 524. In TestMyProxies, a target response carrying 522 has already traveled back from the target edge.

Read the event timeline from both directions

A server operator can compare the edge’s failure time with the origin’s network and service records. When the origin never sees the connection attempt, inspect addressing, routing, and ingress rules. If the origin sees the connection but logs a slow start before any protocol data goes out, check listener backlog, system load, and TLS service health. A healthy probe against another path to the same host can help establish whether the problem comes and goes.

Check the reference path before attributing the error

Run a simple read-only request through the same forward proxy to a site you control and keep the exact outcome. For an affected site you operate, record the Cloudflare Ray ID and compare with unsuccessful origin connection events. The HTTP error code and timing together make a stronger diagnosis than the tester’s duration on its own.

Cloudflare documentation for error 522.

All HTTP status codes · All proxy testing guides · Open the proxy tester