Website error guides / Server errors
504 Gateway Timeout: what it means and how to fix it
In short: the web server or proxy waited for the application to build the page, and gave up before it answered.
Common causes
- Slow database queries or a long-running script.
- The application server is overloaded or stuck.
- A slow outside service the site depends on, such as a payment or shipping API.
How to fix it
- Find the slow request in the logs and speed it up.
- Restart a stuck application server and check its load.
- Give outside services a short timeout so one slow service can’t block the whole page.
Who to contact: your web developer or hosting provider.
Know before your visitors do
PingTurret checks your site from several locations every minute. When it goes down, the alert says the likely cause and who to contact. Free for up to 20 monitors.