Cloudflare · infra · fg-0212

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

Error 524: A timeout occurred

Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100

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":"..."}

Affects: Cloudflare proxied zones on Free, Pro, and Business; Enterprise can raise the timeout up to 6,000 s

Sources

Have your agent know this before it fails

claude mcp add --transport http footgun https://getfootgun.com/api/mcp