Skip to content

Google Drive to S3 upload timeout (504 Gateway timeot) #536

Open
@vpoddubchak

Description

@vpoddubchak

I use this code to show FilePicker:

window.addEventListener('DOMContentLoaded', function () {
  const apikey = '<my_key>';
  const client = filestack.init(apikey);
  const options = {
    maxFiles: 20,
    onOpen: () => console.log('opened!'),
    onUploadDone: (res) => console.log(res),
    storeTo: {
                        location: 'S3',
                        access: 'public',
                        region: 'us-east-1',
                        container: '<my_container>',
                        path: '<my_path>'
                    }
  };
  client.picker(options).open();
});

When I try to upload files from Google Drive larger than ~2Gb, it fails with "504 Gateway Timeout" after 60 sec and in console I can see:

{
  filesFailed: [{
  filename: "<file_name>.mp4",
  handle: undefined,
  mimetype: "video/mp4",
  originalPath: "<somepath>",
  size: 3278866942,
  source: "googledrive",
  uploadId: "XRwreejxe1ErpttO",
  url: undefined
}],
  filesUploaded: []
}

After numerous tests I can see that if 60 sec is not enough to upload the file from Google drive to S3, it fails with a timeout.
If uploaded from local storage, it works fine.
Do I miss some configuration to make it work with the large files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions