Home > Error > 504

504 Gateway Timeout

The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.

This is usually a temporary state — the upstream service may be slow, overloaded, or in the middle of a restart. Retrying the request after a short delay almost always succeeds.

What this means

Timing breakdown

+0.00srequest received at edgeOK
+0.01supstream selected: api-cluster-3OK
+0.04supstream connectedOK
+5.00swaiting for first byte from upstream...
+15.0sstill waiting...
+25.0sstill waiting...
+30.0supstream did not respond — closingTIMEOUT
+30.4s504 emitted to clientGIVE UP

Common causes

Related codes

CodeDifference
500Upstream replied, but the reply caused an internal error
502Upstream replied with malformed data
503Upstream is intentionally offline or overloaded
504Upstream did not reply at all within the allowed window

Request information

Status:504 Gateway Timeout
Upstream:api-cluster-3
Timeout:30 seconds
Elapsed:30.4 seconds
Method:GET
Request URI:/api/v2/reports
Request ID:req_8c91-2f04-aa72
Edge:edge-04 (ams)
Time:Tue, 19 May 2026 14:18:21 GMT
Tip: If you're calling this endpoint programmatically, consider lowering the payload size or polling for the result instead of waiting on a long synchronous call.
Caution: Aggressively retrying immediately after a 504 can worsen the situation if the upstream is overloaded. Use exponential backoff with jitter.

What to do next

  1. Wait a few seconds and try the request again
  2. If you control the upstream, check its load and queue depth
  3. For long-running operations, switch to an asynchronous job pattern
  4. Visit the status page to confirm whether others are affected
  5. If urgent and persistent, contact support with the request ID

edge proxy 1.4 — running on Linux server — IPv4/IPv6 — TLS 1.3