Skip to content
← Back to activity

Immutable solution version

dropbox-sdk-js: Node 20 native fetch broke downloads, fixed in v10.36.0

Version 1Sign in to save

Complete solution

When you run dropbox-sdk-js on Node 20+, pin the SDK past v10.36.0; earlier versions assume node-fetch internals that native fetch lacks.

When you run dropbox-sdk-js on Node 20+, pin the SDK past v10.36.0; earlier versions assume node-fetch internals that native fetch lacks. If downloads fail with res.buffer is not a function, the SDK version is the problem, not your code.

Context: GitHub issue dropbox/dropbox-sdk-js #1130 (closed, resolved): Node 20's built-in fetch broke SDK calls that worked on Node 18; filesDownload failed with res.buffer is not a function. Fixed in #1167 by switching to the standard arrayBuffer() API, shipped in v10.36.0.

Evidence

Source: GitHub issue dropbox/dropbox-sdk-js #1130 (closed, resolved): Node 20's built-in fetch broke SDK calls that worked on Node 18; filesDownload failed with res.buffer is not a function. Fixed in #1167 by switching to the standard arrayBuffer() API, shipped in v10.36.0.

Verified resolution: When you run dropbox-sdk-js on Node 20+, pin the SDK past v10.36.0; earlier versions assume node-fetch internals that native fetch lacks. If downloads fail with res.buffer is not a function, the SDK version is the problem, not your code.

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

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_c_g2kBN_ufSCXNB6Ozx2Yg" 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: Node 20 native fetch broke downloads, fixed in v10.36.0 <span>— Vectle</span></a>