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

S3 mutipart with limit only uploads to the limit and then hangs #1883

Closed
mskelton opened this issue Oct 11, 2019 · 6 comments
Closed

S3 mutipart with limit only uploads to the limit and then hangs #1883

mskelton opened this issue Oct 11, 2019 · 6 comments
Assignees
Labels
AWS S3 Plugin that handles uploads to Amazon AWS S3 Bug

Comments

@mskelton
Copy link
Contributor

When using the limit option and the S3 multipart plugin, any files after the limit hang indefinitely and don't get uploaded. For example, if I was to set a limit of 5 and upload 7 files, the first 5 would upload fine but the last two would just hang indefinitely.

The regular S3 plugin does not have this problem and works just fine.

To reproduce the problem, simply open https://github.com/transloadit/uppy/blob/master/examples/aws-companion/main.js and update the file like so. Then run it and upload more than 5 files to see how the files after 5 hang.

const Uppy = require('@uppy/core')
const GoogleDrive = require('@uppy/google-drive')
const Webcam = require('@uppy/webcam')
const Dashboard = require('@uppy/dashboard')
const AwsS3Multipart = require('@uppy/aws-s3-mulipart')
const uppy = Uppy({
  debug: true,
  autoProceed: false
})
uppy.use(GoogleDrive, {
  companionUrl: 'http://localhost:3020'
})
uppy.use(Webcam)
uppy.use(Dashboard, {
  inline: true,
  target: 'body',
  plugins: ['GoogleDrive', 'Webcam']
})
uppy.use(AwsS3Multipart, {
  companionUrl: 'http://localhost:3020',
  limit: 5
})

2019-10-11_16-43-30

@arturi
Copy link
Contributor

arturi commented Oct 12, 2019

Hi! We’ve recently released a new version of @uppy/[email protected], where limit bugs were hopefully fixed. Are you on the latest version? If not, could you try upgrading?

@mskelton
Copy link
Contributor Author

Yes, I am on version 1.3.1. The example that I showed in the description was from the Uppy source which was freshly cloned yesterday afternoon when I was writing up the issue.

@arturi arturi added the AWS S3 Plugin that handles uploads to Amazon AWS S3 label Oct 12, 2019
@steverob
Copy link
Contributor

Can confirm the same. Happened to me after upgrading to 1.3.1 from 1.3.0 (limit did not even work here).

@goto-bus-stop goto-bus-stop self-assigned this Oct 14, 2019
@goto-bus-stop
Copy link
Contributor

gah, this was supposed to be fixed by #1855. looking...

goto-bus-stop added a commit that referenced this issue Oct 14, 2019
 #1883

I must've tested with just remote files and missed these missing bits in
the local file upload code 😩

Will do a patch release asap when this lands.
@goto-bus-stop
Copy link
Contributor

goto-bus-stop commented Oct 14, 2019

Silly mistake, thanks for the report. Gonna get #1887 out in a patch release today.

@mskelton
Copy link
Contributor Author

Fixed in 1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AWS S3 Plugin that handles uploads to Amazon AWS S3 Bug
Projects
None yet
Development

No branches or pull requests

4 participants