---
title: "Discussion on \"The 504 Wasn't Our Code: Debugging an Upstream Gateway Timeout\" | Hashnode"
description: "Discussion on \"The 504 Wasn't Our Code: Debugging an Upstream Gateway Timeout\". A 504 is a gateway deadline on a specific hop, so identify the hop, measure the upstream directly, fix the bottleneck or use an async job, and retry idempotently."
url: "https://hashnode.com/posts/debugging-504-gateway-timeout-upstream-slow/6ae8019bff45c069a60a74bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The 504 Wasn't Our Code: Debugging an Upstream Gateway Timeout](https://blogs.powerduck.com/debugging-504-gateway-timeout-upstream-slow?utm_source=hashnode&utm_medium=feed)

A 504 is a gateway deadline on a specific hop, so identify the hop, measure the upstream directly, fix the bottleneck or use an async job, and retry idempotently.

Nov 2 · 5 min read · blogs.powerduck.com  
Read the article

-   [#debugging](https://hashnode.com/tag/debugging)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
