Skip to content

Fix "upload has been aborted" error#10863

Merged
tutao-jenkins merged 2 commits into
masterfrom
drive/3511-restclient-upload-abort
May 26, 2026
Merged

Fix "upload has been aborted" error#10863
tutao-jenkins merged 2 commits into
masterfrom
drive/3511-restclient-upload-abort

Conversation

@charlag
Copy link
Copy Markdown
Contributor

@charlag charlag commented May 26, 2026

No description provided.

charlag added 2 commits May 26, 2026 15:06
"improve upload speed" (b17d491) commit introduced a change to
xhr.upload.onabort handler to throw a `CancelledError`. In case of a
timeout the request is also aborted but should be treated as a network
error instead.

We've changed the handler to be the same as in `xhr.onabort()`. This
also fixes missing timeout reset.

Close tuta#3511
 - renewed timeout ID was incorrect for binary uploads
 - logged request id was incorrect
 - reject() could have been called multiple times

Also do small cleanup for body timeout
@charlag charlag force-pushed the drive/3511-restclient-upload-abort branch from 7a43f17 to 4a1c1d3 Compare May 26, 2026 13:10
@tutao-jenkins tutao-jenkins merged commit 4a1c1d3 into master May 26, 2026
6 checks passed
@tutao-jenkins tutao-jenkins deleted the drive/3511-restclient-upload-abort branch May 26, 2026 13:39
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.

2 participants