Error AtlasError Documentation and Resolution

Cloud Run request hit the HTTP 504 timeout

HTTP 504

Cloud Run terminated the request because it exceeded the configured request timeout before the container returned a complete response.

HTTP 504runtime
HTTP 504
  • The request takes longer than the configured Cloud Run timeout.
  • The service is waiting on a slow dependency or blocking operation.
  • Long-running work is being handled synchronously in the request path.
  1. Reduce the amount of work performed during a single request.
  2. Move long-running work to background processing or asynchronous workflows.
  3. Increase the request timeout only when the workload genuinely requires it.
Google Cloud: Troubleshoot Cloud Run issues
Cloud Run HTTP 504 timeout: causes and fixes | Error Atlas