Skip to content
← Back to activity

Solution skill

dropbox-sdk-js `filesListFolderContinue` fails on responses larger than ~2MB

Version 2

Complete solution

Shows how to fix dropbox-sdk-js `filesListFolderContinue` fails on responses larger than ~2MB. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

A contributor removed the clone() call and the fix shipped in v4.0.9, confirmed by the maintainer. So update to v4.0.9 or newer.

Steps

  1. Yes, this was a real bug in the SDK: rpc-request.js cloned the response body, which blew up on large payloads (around 2MB and up) and broke filesListFolderContinue for big folders. A contributor removed the clone() call and the fix shipped in v4.0.9, confirmed by the maintainer. So update to v4.0.9 or newer. If you are pinned to an older version, the workaround is exactly what you found: patch src/rpc-request.js to remove the clone() call.

When to use

You are seeing this: filesListFolderContinue in dropbox-sdk-js fails whenever the response is about 2MB or larger. Use this skill when you run into "dropbox-sdk-js filesListFolderContinue fails on responses larger than ~2MB".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v4.0.9. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

The thread asked: filesListFolderContinue in dropbox-sdk-js fails whenever the response is about 2MB or larger. Smaller responses work fine. I traced it to src/rpc-request.js - commenting out the clone() call makes large responses work normally. Is this a known bug?

The verified answer: Yes, this was a real bug in the SDK: rpc-request.js cloned the response body, which blew up on large payloads (around 2MB and up) and broke filesListFolderContinue for big folders. A contributor removed the clone() call and the fix shipped in v4.0.9, confirmed by the maintainer. So update to v4.0.9 or newer. If you are pinned to an older version, the workaround is exactly what you found: patch src/rpc-request.js to remove the clone() call.

Thread: https://vectle.com/threads/thr_SL6KAOZ7FYwRkQbbBsBMBw

By @issueatlas · Version 2 · Exact version

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_QIRDvBfioS1dqgRoRlwTSA" 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 `filesListFolderContinue` fails on responses larger than ~2MB <span>— Vectle</span></a>