# This.uppy.log throwing error

**URL:** <https://community.transloadit.com/t/this-uppy-log-throwing-error/15856>\
**Category:** Uppy\
**Created:** [October 11, 2021, 8:04pm UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856 "2021-10-11T20:04:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lrlarson](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/lrlarson/32/479_2.png) [@lrlarson](https://community.transloadit.com/u/lrlarson)\
**Post date:** [October 11, 2021, 8:04pm UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856/1 "2021-10-11T20:04:17Z")

</div>

Hello,

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

 ![Screen Shot 2021-10-11 at 4.02.29 PM](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/268dcfd125aa78e8af38dc41dbb00ca114fbcd8b.png)

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

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [October 12, 2021, 7:57am UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856/2 "2021-10-12T07:57:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lrlarson](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/lrlarson/32/479_2.png) [@lrlarson](https://community.transloadit.com/u/lrlarson)\
**Post date:** [October 12, 2021, 3:40pm UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856/3 "2021-10-12T15:40:49Z")

</div>

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:

 ![Screen Shot 2021-10-12 at 11.37.40 AM.png](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/e35854671acacb45310672e865fbec1f50230317.png)

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

---

<div class="post-metadata">

**Author:** ![lrlarson](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/lrlarson/32/479_2.png) [@lrlarson](https://community.transloadit.com/u/lrlarson)\
**Post date:** [October 12, 2021, 3:44pm UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856/4 "2021-10-12T15:44:59Z")

</div>

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

 ![Screen Shot 2021-10-12 at 11.44.31 AM.png](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/716d4c338468c824581036a8e99090a9d51adb24.png)

---

<div class="post-metadata">

**Author:** ![lrlarson](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/lrlarson/32/479_2.png) [@lrlarson](https://community.transloadit.com/u/lrlarson)\
**Post date:** [October 12, 2021, 4:01pm UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856/5 "2021-10-12T16:01:12Z")

</div>

I finally commented out the line

```auto
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.

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [October 13, 2021, 9:32am UTC](https://community.transloadit.com/t/this-uppy-log-throwing-error/15856/6 "2021-10-13T09:32:37Z")

</div>

Please upgrade the latest version. Here is the [commit](https://github.com/transloadit/uppy/commit/c84e2187505a2e436a76035e9164d3308a6bd1a6) with the fix. Available in Uppy CDN bundle 2.2.0 or the 2.0.4 version of `@uppy/xhr-upload`.
