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

Aws Multipart - Error handling for prepareUploadParts #3909

Closed
2 tasks done
Jaykishan0705 opened this issue Jul 26, 2022 · 2 comments · Fixed by #3912
Closed
2 tasks done

Aws Multipart - Error handling for prepareUploadParts #3909

Jaykishan0705 opened this issue Jul 26, 2022 · 2 comments · Fixed by #3912
Labels

Comments

@Jaykishan0705
Copy link

Jaykishan0705 commented Jul 26, 2022

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

I am currently working on Aws-S3-Multipart and I want to add custom retry functionality on my end.

To implement retry feature, I have added event listner on upload-error event but callback is not being called if we get error in prepareUploadParts function

In plugin, we have handled error-handling in #createUpload and #completeUpload functions but we have not added try catch block in #prepareUploadParts function.

Suggested change
https://github.com/transloadit/uppy/blob/main/packages/%40uppy/aws-s3-multipart/src/MultipartUploader.js#L203
we should add catch block here and invoke onError function in catch block similar to createUpload and completeUpload function

Expected behavior

We should add error handling for prepareUploadParts function.

Actual behavior

We haven't supported error handling in prepareUploadParts function

@Murderlon
Copy link
Member

It indeed doesn't call this.#onError, which would emit upload-error. However, it does retry with the default or passed retryDelays . So if you add custom retry logic, I suppose you should set it to zero retries otherwise it tries multiple times on something that won't work in your setup.

@Jaykishan0705
Copy link
Author

yeah @Murderlon it is not emitting upload-error. about retryDelays I want to pass retryDelays as some custom values and after that retries, if upload fails then I want to do some custom logic.

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

Successfully merging a pull request may close this issue.

2 participants