This.uppy.log throwing error
Started by lrlarson5 replies504 views
lrlarsonOriginal post
MerlijnTransloadit team
Hi, this has been fixed already. Please upgrade to the latest version of Uppy 🙂
lrlarsonReplying to #2
Thank you for getting back to me.
I am using v 2.0.2
[Uppy] [11:36:28] Using XHRUpload v2.0.2
But I am still getting this error in the uppy code:
index.js:116 Uncaught TypeError: Cannot read properties of undefined (reading ‘log’)
at Object.getResponseData (index.js:116)
at XMLHttpRequest. (index.js:287)
Further thoughts?
Thank you for your time.
Larry
lrlarsonReplying to #2
lrlarsonReplying to #2
I finally commented out the line
getResponseData(responseText) {
let parsedResponse = {};
try {
parsedResponse = JSON.parse(responseText);
} catch (err) {
//this.uppy.log(err);
}
return parsedResponse;
},
And everything works.
Am I the only person for whom this has been an issue?
Again, thanks for helping.
MerlijnTransloadit team
Please upgrade the latest version. Here is the commit with the fix. Available in Uppy CDN bundle 2.2.0 or the 2.0.4 version of @uppy/xhr-upload.


