Log Analytics
Local-First
← Back to analyzer

Troubleshooting

CloudFront 504 Gateway Timeout

Edge node waited too long for the origin before timing out.

SQL Lens

Run this query locally to surface offenders.

SELECT edge_location, host, time_taken FROM logs WHERE status = 504 ORDER BY time_taken DESC
Investigate in HUD

Playbook

  1. Measure origin latency and compare with CloudFront origin timeout (30s default).
  2. Reduce payload size or enable compression to shorten origin time.
  3. Deploy Origin Shield or regional edge cache near the backend.