Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vpoddubchak opened this issue Nov 10, 2023 · 3 comments
Open

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

vpoddubchak opened this issue Nov 10, 2023 · 3 comments

Comments

@vpoddubchak
Copy link

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
Copy link

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
Copy link
Author

No. I did not find any workaround...

@ilonakryzhanivska
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants