About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Cloudflare Error 524 means Cloudflare connected to the origin, but the origin did not finish in time. The default Proxy Read Timeout is 125 seconds. The Proxy Write Timeout is 30 seconds (6.5 seconds for Cloudflare Images) and cannot be adjusted. Speed up or split the work, or put long jobs on a DNS-only hostname. This is not Error 522, where the connect itself timed out.
What the symptom means
Cloudflare titles the fault "Error 524: a timeout occurred" and states: "Error 524 indicates that Cloudflare successfully connected to the origin web server, but the origin did not provide an HTTP response before the default 125 seconds Proxy Read Timeout."
Error 524 also covers the case where Cloudflare connected to write data, "but the write did not complete before the 30 seconds Proxy Write Timeout (or 6.5 seconds in the case of Cloudflare Images). This timeout cannot be adjusted."
Common triggers are a long-running process and an overloaded origin. Cloudflare suggests status polling of large HTTP processes so one request does not sit past the limit.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Long-running HTTP request on a proxied hostname | 524 near 125 seconds on exports or reports | Origin access log duration near 125s for that URL |
| Overloaded origin | 524 across many paths under load | CPU, memory and queue metrics at the cf-ray time |
| Slow write to the origin | 524 on large uploads; read path looks fine | Failure during request body upload within 30s |
| Enterprise read timeout still too low for the job | 524 after a custom Proxy Read Timeout | Compare duration with the value set on the zone or cache rule |
Prove the cause before changing anything
These steps only read.
-
Confirm the fault is 524, not 522. For 524, Cloudflare already connected. For 522, SYN+ACK missed 19 seconds or no data above TCP arrived within 90 seconds.
-
In Origin Analytics, watch paths whose P95 response times approach the Proxy Read Timeout (Top endpoints table).
-
Log request response time at the origin to find slow resources.
-
Separate large uploads (30-second write path) from long compute or download jobs (125-second read path). The write timeout cannot be raised.
Fix
Shorten or split the work at the origin
Contact your hosting provider about origin overload or long-running requests on the proxied hostname. Cloudflare suggests implementing status polling of large HTTP processes so one request does not sit past the Proxy Read Timeout.
Move long jobs behind a DNS-only hostname
If you regularly run HTTP requests that take over 125 seconds (for example large data exports), "move those processes behind a subdomain not proxied (DNS-only, grey clouded) in the Cloudflare DNS app."
If that long-job hostname already exists, save its current proxy state first. If you are about to create a new DNS-only record, note that instead:
echo "exports.example.com proxied=yes existing=yes" > cloudflare-dns-proxy-before.txt
Replace with existing=no when the record will be new.
Disruptive step: the next change sets that subdomain to DNS-only (grey cloud), or creates a new DNS-only record, so those requests bypass Cloudflare's proxy and hit the origin directly until you reverse it.
In the Cloudflare DNS app, set the long-job A or CNAME to DNS only (or create that record if it does not exist). Point the export client at that hostname. Keep the public site proxied.
To undo it: if the record already existed, set it back to Proxied per cloudflare-dns-proxy-before.txt. If the record is new, delete it to undo.
Enterprise customers can raise the 524 timeout up to 6,000 seconds with a Cache Rule Proxy Read Timeout when content can be cached (cacheable for the rule to trigger; it need not be cached), or by raising proxy_read_timeout for the zone via the Edit zone setting API. The write timeout still cannot be adjusted. Cloudflare notes about a 1 second skew versus the configured value (Pingora work) and suggests setting one second more when that matters (for example 126 instead of 125).
Example (illustrative): /admin/export returns 524 near 125 seconds. Moving it to exports.example.com as DNS-only, leaving www proxied, clears the 524 without raising a timeout.
Confirm the fix
- Re-run the failing request; it should finish without Error 524.
- Confirm the public proxied site still answers through Cloudflare.
- On Enterprise, if you raised Proxy Read Timeout, retest just under the new limit.
What to watch afterwards
- New exports added under a proxied hostname.
- Origin CPU that pushes pages toward 125 seconds.
- Uploads failing near 30 seconds — the write timeout cannot be adjusted.
Read next
Related articles you may want next.
- Troubleshootingnginx 504 Gateway Time-out: upstream timed out (110: Connection timed out) while reading response headernginx 504 Gateway Time-out and upstream timed out (110: Connection timed out) while reading response header. Find the slow phase and set timeouts safely.Read article
- TroubleshootingCloudflare Error 522: Connection timed outCloudflare Error 522: no SYN+ACK in 19s or no data above TCP in 90s. Allow Cloudflare IPs, check origin load, and verify the proxied DNS target.Read article
- TroubleshootingCloudflare Error 520: Web server is returning an unknown errorCloudflare Error 520: origin returned an empty or unexpected response. Check crashes, Cloudflare IP blocks, headers over 128 KB and HTTP/2 to Origin.Read article
Risks and limits
These steps have not been lab-tested.
DNS-only exposes the origin IP and removes HTTP filtering on that name. The 30-second Proxy Write Timeout cannot be raised. Non-Enterprise zones do not get the 6,000-second read-timeout path. nginx 504 upstream timed out is a different proxy's timer.
Sources
- Error 524 — Cloudflare, Last updated Jul 23, 2026, accessed 1 December 2026
This article was originally published on .