522: Connection timed out
Does your origin server respond fine when you bypass Cloudflare (hit it directly)?
Yes, origin responds fine directly
Cloudflare cannot establish a timely connection to your origin.
Check
Confirm your origin firewall or security group allows Cloudflare's published IP ranges.
Fix
Allow Cloudflare's published IP ranges in your origin firewall.
Verify
Retry the request through Cloudflare and confirm the error is resolved.
No, origin is slow/unreachable too
The connection problem exists at your origin independent of Cloudflare, since it's also slow or unreachable when accessed directly.
Check
Check your origin server's CPU/memory/connection-count metrics and any upstream network status around the time of the timeout.
Fix
Address the underlying origin performance or connectivity issue (scale resources, restart a hung process, or contact your hosting provider if it's network-level).
Verify
Confirm the origin responds quickly when accessed directly, then retry through Cloudflare.
Want to narrow it down interactively instead? Use the error lookup tool.