Cloudflare · infra · fg-0212

Long requests through Cloudflare fail with Error 524 after about two minutes

If you see Error 524: A timeout occurred, the cause and the fix for Cloudflare are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
Error 524: A timeout occurredExports or report endpoints fail only when proxiedOlder answers cite 100 seconds while the cutoff is now 125 seconds
Cause
Cloudflare waits 125 seconds for the origin to send response headers before returning 524. Only Enterprise zones can raise this proxy read timeout.
Fix
Return quickly and finish the work in the background with a job id the client polls, or serve the long endpoint from a DNS only hostname.
Apply
POST /api/export -> 202 {"job":"abc"} GET /api/export/abc -> {"status":"done","url":"..."}
Affected
Cloudflare proxied zones on Free, Pro, and Business; Enterprise can raise the timeout up to 6,000 s
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun