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

fix: repeated slice uploading on large file upload task #321

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

andrueastman
Copy link
Member

@andrueastman andrueastman commented Aug 26, 2024

The uploadWithRetry does not check for that error/status but always attempts to upload the slice again even in success. Failing to do so may result in a conflict with the API.

This PR fixes the function to simply return in the event the chuck upload is successful.

Fixes #320

@andrueastman andrueastman requested a review from a team as a code owner August 26, 2024 13:54
Copy link

sonarcloud bot commented Aug 26, 2024

@andrueastman andrueastman enabled auto-merge August 26, 2024 13:56
@andrueastman andrueastman merged commit 5aa1169 into main Aug 26, 2024
9 checks passed
@andrueastman andrueastman deleted the andrueastman/fixRepeatedSlices branch August 26, 2024 13:57
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

Successfully merging this pull request may close these issues.

Large file upload is sending Authorization header, causing email attachment upload to fail.
2 participants