Skip to content
CRASH

HTTP status code

504 Gateway Timeout

A proxy in front of your site waited for the origin server to answer and gave up. The origin is alive but too slow, or the request never reached it.

Common causes

  • A slow database query or external API call holds the request.
  • The proxy timeout is shorter than the time the app legitimately needs.
  • A firewall silently drops traffic between the proxy and the origin.

How to fix it

  1. Find the slow endpoint in your app logs or APM and fix the query or call.
  2. Align proxy and app timeouts so the proxy waits at least as long as the app.
  3. Test connectivity from the proxy host to the origin directly.

Related errors

Next time your site goes down, hear it from Crashy first.

Not from a customer. 1 website is free — no card.