We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
NAPOLEON039
7 years agoNew member | Level 2
Api v2 for filesGetThumbnail gives t.buffer not a function error
This is a question that has already been answered, but none of the solutions have worked for me.
I am trying to upload an image using Python and view it using JavaScript. I'm using the Vue.js framework. The upload part happens splendidly with Python. It's the JavaScript part that is giving me some serious headache.
The solutions to previous similar posts have not worked for me. I'm using the following code for fetching a thumbnail; the response doesn't log and instead shows this cryptic error:
Here is my code:
dbox.filesGetThumbnail({path: 'relevant file path with .jpg extension'}) .then(response => { console.log(response) })
Would appreciate some help :slight_smile:
- It sounds like you're referring to the following threads:
https://github.com/dropbox/dropbox-sdk-js/issues/172
https://www.dropboxforum.com/t5/API-support/Thumbnails/m-p/263451
Did you try including the library as a JavaScript library instead of a Node dependency? Can you elaborate on how exactly the fixes failed for you?
- Greg-DBDropbox StaffIt sounds like you're referring to the following threads:
https://github.com/dropbox/dropbox-sdk-js/issues/172
https://www.dropboxforum.com/t5/API-support/Thumbnails/m-p/263451
Did you try including the library as a JavaScript library instead of a Node dependency? Can you elaborate on how exactly the fixes failed for you?- NAPOLEON039New member | Level 2
Oh, looks like I missed that. It works now:grinning:. Thanks!!
- Greg-DBDropbox StaffThe original `t.buffer is not a function` issue should be fixed in the latest version of the library, currently v4.0.3.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 9 hours agoIf 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 or Facebook.
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!