Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
carlospr-dev
5 months agoNew member | Level 2
TypeError with sharingGetSharedLinkFile - res.buffer() is not a function
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,...
DB-Des
Dropbox Community Moderator
5 months agoI'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:
- the full code snippet(s), but don't include any access or refresh token(s)
- 5-10 different 'X-Dropbox-Request-Id' response header values encountering the issue
- carlospr-dev4 months agoNew member | Level 2
Hi!
I found what was the problem. These github issues sum it up:
- https://github.com/dropbox/dropbox-sdk-js/issues/1135
- https://github.com/dropbox/dropbox-sdk-js/issues/1137
Root cause in the sdk code: https://github.com/dropbox/dropbox-sdk-js/blob/6bfaf895b757d7bd1e65002847a7c801813cc210/src/response.js#L51
Basically in the bun runtime and since a specific node version and above the .buffer function on the response object was deprecated in favor for .arrayBuffer and it has not been fixed on the js sdk.
I created my own filesDownload function to handle the response correctly and problem solved for now. I'll be on the lookout for the PR that solves the issue on the sdk.
Carlos G.
- DB-Des4 months ago
Dropbox Community Moderator
Thanks for sharing these details. We’ve added your report to the open issue we’re tracking, and we’ll follow up with you as soon as we hear back with any updates.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!