Free auditStart free
GuideError · CDN and hosting

Cloudflare error 522: connection timed out

Cloudflare error 522 means Cloudflare timed out contacting your origin. Learn the two timeouts behind it, the usual cause and how to fix it.

4 min
read
6
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
The short answer

Cloudflare error 522 means Cloudflare timed out while contacting the origin web server. It is a Cloudflare-defined status, not standard HTTP. The most common cause is an origin firewall that rate limits or blocks Cloudflare's IP addresses. Others are an overloaded or offline server, disabled keepalives and a wrong origin IP in DNS.

  1. What error 522 means and the two timeouts behind it
  2. How to get past a 522 as a visitor
  3. How to fix a 522 as a site owner
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01The two timeouts that cause a 522

What error 522 means and the two timeouts behind it

Error 522 is not a standard HTTP status. IANA lists 512 to 599 as unassigned, and Cloudflare defines 522 as "Cloudflare times out contacting the origin web server." Cloudflare describes two different timeouts, depending on when the failure happens:
Stage

Before the TCP connection exists

What Cloudflare waits for
A SYN+ACK reply after sending a SYN
Limit
19 seconds (SYN retries at 1, 1, 1, 1, 1, 2, 4 and 8 seconds)
Stage

After the TCP connection exists

What Cloudflare waits for
An acknowledgment (ACK) of its resource request
Limit
90 seconds

Both mean the origin or the network path to it did not reply. Cloudflare's connection limits page adds that these two rows are not an exhaustive list of what can produce a 522, and that a timeout while TLS setup is still pending can be reported as a 522 rather than a 525. If Cloudflare connected and the origin acknowledged the request but sent no response in time, you get a 524 instead. If the origin actively refused the connection, you get a 521.

02How it works

How to get past a 522 as a visitor

Cloudflare says that when most 5xx errors appear, the right first step is to contact the hosting provider or site administrator, and that Cloudflare Support only assists the domain owner. As a visitor you can do little beyond waiting and ruling out your own setup.
  1. 01

    Reload after a minute

    A reload costs nothing and may work if the origin was briefly overloaded. A 522 that persists needs the owner to act.

  2. 02

    Try another network or device

    If the page loads on mobile data or on someone else's connection, the problem is local. If it fails everywhere, the site has the fault.

  3. 03

    Tell the site owner

    Send the exact URL, the time with your timezone and the error code. Cloudflare lists those details for owners to give a hosting provider. Add the Ray ID if the error page shows one, since Cloudflare's log tools can filter by it.

04Explained

What it does to SEO

Google treats 5xx responses as server errors: its crawlers slow down, content returned with them is ignored, and URLs already indexed are kept for a while but eventually dropped if the errors persist. A 522 is a 5xx from the crawler's side, so a repeated one slows crawling. See 5xx server errors for how to trace the pattern and confirm recovery, and Google's documentation on how HTTP status codes affect its crawlers.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01How can I fix a connection timed out error on Cloudflare?

First confirm your host allows all Cloudflare IP ranges, the most common cause per Cloudflare. Then check the origin is online and not overloaded, keepalives are enabled, and the origin IP in Cloudflare DNS is correct.

02Why does Cloudflare time out?

Cloudflare gives up when it gets no SYN+ACK within 19 seconds of its SYN, or no acknowledgment of its resource request within 90 seconds after connecting. Both point to an unresponsive origin or network path.

03Is a 522 the same as a 504?

No. A 504 Gateway Timeout is a standard HTTP status where a proxy got no response in time. A 522 is a Cloudflare-specific status for a timeout while contacting the origin, with defined TCP-stage limits.

04Can a visitor fix error 522?

No. Cloudflare says Cloudflare Support only assists the domain owner, and that a site visitor should report the problem to the site owner.

Sources · 6

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • cloudflare.com
  • iana.org
  • google.com
  1. 01Error 522 - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
  2. 02Cloudflare 5xx errors - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
  3. 03Cloudflare IP addresses - Cloudflare Fundamentals docsdevelopers.cloudflare.com · checked 2026-10-25
  4. 04IANA: Hypertext Transfer Protocol (HTTP) Status Code Registryiana.org · checked 2026-10-25
  5. 05How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
  6. 06Connection limits - Cloudflare Fundamentals docsdevelopers.cloudflare.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane