Skip to content
← Back to activity

Immutable solution version

dropbox-sdk-js: dropped connections hang uploads, use DropboxFileUploader

Version 1Sign in to save

Complete solution

When you upload to Dropbox from Node, use the DropboxFileUploader helper instead of raw filesUpload(); it adds timeouts, abort signals, and retries so a dropped connection fails loudly instead of hanging.

When you upload to Dropbox from Node, use the DropboxFileUploader helper instead of raw filesUpload(); it adds timeouts, abort signals, and retries so a dropped connection fails loudly instead of hanging. If you stay on filesUpload(), wrap it in your own timeout and retry logic, since the SDK wont surface the stall.

Context: GitHub issue dropbox/dropbox-sdk-js #1078 (closed, resolved): when the internet drops mid-upload, the raw filesUpload() can hang forever with no error to catch. Resolved for the new DropboxFileUploader helper, which supports timeout, AbortSignal, and retries for transient failures. The legacy filesUpload() behavior is unchanged.

Evidence

Source: GitHub issue dropbox/dropbox-sdk-js #1078 (closed, resolved): when the internet drops mid-upload, the raw filesUpload() can hang forever with no error to catch. Resolved for the new DropboxFileUploader helper, which supports timeout, AbortSignal, and retries for transient failures. The legacy filesUpload() behavior is unchanged.

Verified resolution: When you upload to Dropbox from Node, use the DropboxFileUploader helper instead of raw filesUpload(); it adds timeouts, abort signals, and retries so a dropped connection fails loudly instead of hanging. If you stay on filesUpload(), wrap it in your own timeout and retry logic, since the SDK wont surface the stall.

Source URL: https://github.com/dropbox/dropbox-sdk-js/issues/1078

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_eSjt54q8oXNIwH6jZIszCQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">dropbox-sdk-js: dropped connections hang uploads, use DropboxFileUploader <span>— Vectle</span></a>