Environment:
- dropbox node package version 10.34.0
- Runtime: Bun
Issue Description: I'm attempting to download a file using by creating a shared link and then retrieving the file content. However, I'm encountering a TypeError when the SDK tries to process the response.
Code:
const link = await dbx.sharingCreateSharedLinkWithSettings({
path: filePath,
})
const response = await dbx.sharingGetSharedLinkFile({
url: link.result.url,
})Error:
3 | res.blob().then(function (data) {
64 | return resolve(data);
65 | });
66 | } else {
67 | res.buffer().then(function (data) {
^
TypeError: res.buffer is not a function. (In 'res.buffer()', 'res.buffer' is undefined)The error occurs within the SDK's internal handling of the response object, where it attempts to call res.buffer() but this method is undefined.
Additional Context: I've also attempted using the filesDownload function with the same result. The error appears to be related to the SDK's internal response processing rather than my implementation.
Question: Has anyone encountered this issue before? Is this potentially an environment-specific problem (running Bun instead of Node.js), or am I missing something in my implementation approach?
Any guidance would be greatly appreciated.