filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 76 forks source link

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

Open vpoddubchak opened 8 months ago

vpoddubchak commented 8 months ago

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?

sam-trint commented 5 months ago

I think I have same issue as you - 504 response for any file uploaded via google drive larger than ~2.5GB

Did you find a solution?

vpoddubchak commented 5 months ago

No. I did not find any workaround...

ilonakryzhanivska commented 2 months ago

@sethk4783 could you please help with it? This is long waited issue