Skip to content
← Back to activity

Public problem

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

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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?

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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.

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