t.buffer is not a function
See original GitHub issueHi all,
I am trying to evaluate dropbox sdk in a cordova project (base on Framework 7 template / vue.js). Uploading files works fine, but I get an error in download it
My code that cause an error is the following :
dbxt
.filesDownload({
path: "/easysubstest.data"
})
.then(function(data) {
console.log(data);
/*var reader = new FileReader();
reader.readAsText(response.fileBlob);
reader.onloadend = function() {
alert("data restored successfully!");
updateImage(this.result);
};*/
})
.catch(function(error) {
console.error(error.message);
});
The trace of the error
[Error] t.buffer is not a function. (In ‘t.buffer()’, ‘t.buffer’ is undefined) (fonction anonyme) (cordova.js:1731) (fonction anonyme) (41382e06b346faf19af6.main.js:34467) promiseReactionJob
Am I missing something ? I am new to this environment .
Thanks !
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:16 (13 by maintainers)
Top Results From Across the Web
How to fix 'TypeError: Buffer.from is not a function'?
While trying to use ipfs-api in my application, I am getting below error: ERROR TypeError: Buffer. from is not a function at varintEncode...
Read more >react native t.buffer is not a function · Issue #178 - GitHub
Hi, I'm using this module in a react native environment. All seems to work well, except when I attempt to download a file...
Read more >Node.js Buffer Module - W3Schools
The buffers module provides a way of handling streams of binary data. The Buffer object is a global object in Node.js, and it...
Read more >Response.arrayBuffer() - Web APIs - MDN Web Docs
The arrayBuffer() method of the Response interface takes a Response stream and reads it to completion. It returns a promise that resolves ...
Read more >Api v2 for filesGetThumbnail gives t.buffer not a function error
Solved: Hi, when i try to get thumbnail for any file inside my folder i have the same error for different types os...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ponkin This may depend on the particular environment you’re running in. Please refer to my earlier comment here for a potential solution:
https://github.com/dropbox/dropbox-sdk-js/issues/172#issuecomment-361650716
The fact that the code doesn’t also try to detect the existence of
t.buffer
feels like a bug.