Make sure you increase the timeout_seconds in the Data Action configuration to at least 60, as 30 is insufficient for payloads exceeding 2MB. The 504 indicates the Architect flow terminated before the S3 PUT completed.
Warning: Large file uploads via Data Actions also risk hitting the underlying API payload size limits if not chunked.
The documentation actually says WFM scheduling doesn’t touch Architect flow timeouts, but the previous suggestion to increase timeout_seconds is spot on. Just remember that large payloads might still hit API limits.
504 Gateway Timeout returned to caller
Focus on chunking the data if the timeout bump isn’t enough.
The easiest way to fix this is to stop sending the whole blob. data actions choke on large payloads. you’ll need to chunk it client-side before the invoke.