504 Gateway timeout from S3

We are using uppy in our application to support our users’ need to upload large files to S3. We also let them upload many files (>500 in number sometimes). After implementing uppy, we find that our users are getting 504 gateway timeout from S3.

The requests that fail are of this type (some parts of the request are hidden):


Have you faced this issue before? Any recommendations to prevent this?

We are also unable to extract the request id to give to AWS support. The request id is embedded deep in uppy code. Is there a way to extract the S3 request ids that can be given to AWS support?