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

Issue: uploadFile() will fail when resuming a failed upload session, if optional parameter 'headers' is not supplied #11

Open
4ccsds opened this issue Jul 1, 2021 · 2 comments

Comments

@4ccsds
Copy link

4ccsds commented Jul 1, 2021

reproduce: call uploadFile() without optional parameter 'headers' to start a resumable upload, manually break the uploading, then resume it by calling uploadFile() in same manner again, then Exception('some parts are failed when upload. Please try again') will be raised. This can be repeated.


uploadFile => _resumer_upload => _upload:
if self._record is None:
self._prepare() ### this line will populate self.headers
### but if self._record exists, self.headers will not be touched and could be None if optional parameter 'headers' is not supplied to uploadFile().


[email protected]

@mpb159753
Copy link

Thanks! We will fix this bug in next version

@mpb159753
Copy link

new version has already released

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

2 participants