Usually caused by: the website
What does 504 Gateway Timeout mean?
As with 502, a proxy, load balancer or CDN sits between you and the application. With 504 the application did not refuse, but it did not answer within the waiting time. Typical causes are slow database queries, hanging external APIs or long calculations.
Many proxies wait 60 seconds by default; Cloudflare reports its own error 524 after 100 seconds.
Is it me or the website?
It is the website or a service it depends on.
What you can do as a visitor
- Reload the page after a while.
- If only one action like a search or an export is affected, try it with less data.
- Use our check to see whether the home page is affected everywhere.
What you can do as the site owner
- Find the slow requests: database slow query log, application logs, profiling.
- Call external APIs with their own short time limits.
- Move long tasks to background processes.
- Only raise time limits like
proxy_read_timeoutorfastcgi_read_timeoutonce the cause is clear.