This.uppy.log throwing error

Hello,

I am getting the following error in Uppy when I attempt to upload.

Everything else is working fine, but the the uppy.log() function is not recognized. Any ideas?

Hi, this has been fixed already. Please upgrade to the latest version of Uppy :slight_smile:

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

I should add that the files are being uploaded successfully…The bug is in handling the result. Here is the complete console log:

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.

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.