Cloudflare Error 524: A Timeout Occurred
Quick answer
Error 524 means the origin accepted the connection but did not answer within about 125 seconds. Speed up the slow request, run it in the background, or bypass the proxy for it.
Most likely fix: Find and speed up the slow request
How to fix it
Try these in order — the most common fix is first.
1. Find and speed up the slow request
- Log response times on the origin
- Use Origin Analytics > Top endpoints to see paths near the timeout
- Optimise the query or add caching
Did this fix it?2. Make long jobs asynchronous
- Return immediately and poll for the job status instead of one long request
- Use a queue or background worker for exports and imports
Did this fix it?3. Serve long requests on a DNS-only subdomain
- In DNS, create a subdomain such as admin.example.com
- Set it to DNS only (grey cloud)
- Use it for the long-running tool
Did this fix it?4. Enterprise only: raise the timeout
- Use a Cache Rule with Proxy Read Timeout, or the proxy_read_timeout zone setting via API
- Values up to 6,000 seconds are allowed; set 1 second higher than needed
Did this fix it?
Symptoms
'Error 524: A timeout occurred' appears after a long wait, typically on exports, imports, backups or heavy admin pages.
Why it happens
- Origin takes longer than the 125-second Proxy Read Timeout
- Large database query or overloaded server
- Write to the origin not finishing in 30 seconds (cannot be changed)
This guide also covers
- cloudflare error 524
- a timeout occurred cloudflare
- cloudflare 524 wordpress
Still not working?
If Cloudflare keeps failing, you're not alone. See every Cloudflare problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther Cloudflare errors
- Cloudflare Error 521: Web Server Is Down
- Cloudflare Error 522: Connection Timed Out
- Cloudflare Error 525: SSL Handshake Failed
- Cloudflare Error 526: Invalid SSL Certificate
- Cloudflare Error 520: Web Server Returned an Unknown Error
- Cloudflare Error 1020: Access Denied
- Cloudflare Error 1015: You Are Being Rate Limited
- Cloudflare Error 1016: Origin DNS Error