524 Cloudflare Origin: Edge & web server Last updated 12 Oct 2026

Cloudflare Error 524: A Timeout Occurred

Cloudflare connected to the origin, but the origin didn’t send an HTTP response within 100 seconds.

Exact message you may see A timeout occurred
Seen on: Cloudflare

Meaning

The request reached your app, but it took longer than Cloudflare’s proxy read timeout (100s on Free/Pro/Business). The work may still complete on the origin after the user sees the error.

Common causes

  • Long-running request (reports, exports, imports)
  • Slow database queries
  • Origin overloaded and queueing
  • Waiting on a slow external API

⚡ Quick fix

  1. Move long work to a background job and poll for status
  2. Optimize the slow query or endpoint
  3. Serve long-running endpoints from a grey-clouded (DNS-only) subdomain
  4. Enterprise plans can raise the timeout

Detailed fix by platform

Cloudflare

  1. Return quickly with 202 Accepted and a job ID; let the client poll a status endpoint.

How to diagnose

  1. Timing — How long does the endpoint take on origin?
  2. Bottleneck — DB, CPU or external call?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Edge & web server. Errors that are often confused with or caused by this one (click to open):

103 — HTTP 103 Early Hints (HTTP)1031200 — Cloudflare Error 1200: Cache connection limit (Cloudflare)12002013 — MySQL ERROR 2013 (HY000): Lost connection to MySQL server during query (MySQL)2013504 — HTTP 504 Gateway Timeout (HTTP)504522 — Cloudflare Error 522: Connection Timed Out (Cloudflare)52257014 — ERROR: canceling statement due to statement timeout (PostgreSQL)57014ANR — ANR: Application Not Responding (Input dispatching timed out) (Android)ANRcf-cache-status: DYNAMIC — Cloudflare not caching: cf-cache-status DYNAMIC / BYPASS / MISS every time (Cloudflare)cf-cache-status: DYNA…524

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.