App builder action is returning 504 Gateway | Community
Skip to main content
Level 2
May 4, 2026
Question

App builder action is returning 504 Gateway

  • May 4, 2026
  • 1 reply
  • 14 views

When invoking a long-running action with --result, the CLI returns a 504 Gateway Timeout after ~60 seconds — even though the action continues running successfully in the background. 

 

However, the unexpected behavior is that the CLI appears to automatically retry the invocation after each 504, resulting in multiple activations being created from a single invoke command. In my case, one command produced 3 concurrent activations all processing the same dataset simultaneously.

 

How can this issue be resolved ? 

1 reply

manavluhar
Adobe Champion
Adobe Champion
May 4, 2026

Good one ​@Meghana_N, This is almost always caused by one of two things:

  • External API Latency: Your App Builder action is making an outbound network request to a third-party service [like an ERP, Adobe Commerce or external database]

    • That downstream service hangs, runs slowly, or fails to respond. Because there is no client-side timeout defined in your code, the App Builder action waits indefinitely until OpenWhisk forcibly kills the process at the 60-second mark, resulting in a 504. If you are using a library like node-fetch or axios inside your App Builder action, strictly define an outbound timeout and try.

  • Unresolved DNS Queries: The domain of the external service cannot be resolved, leaving the HTTP request hanging in a perpetual wait state. If the external service genuinely needs more than 60 seconds to process data such as importing a large massive catalog, you cannot perform this synchronously.

#MagentoMan