title: yntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data when debugging enabled
body: <p>guys - I have a problem, and there are quite a few people struggling to find the solution for this. The error above appears when I try to upload photos (jpg, png) directly into chat plugin. Chat plugin has another option which is 'Attach file' and it let's me to attach all files. On debug - we have received this error. I have read all articles related to this one but did not see anything with this specific error in debug. Please, I would be happy to hear if you have any thoughts... I have just run out of options regarding this issue.
  <a href="http://i.stack.imgur.com/6BGhr.png" rel="nofollow">error shown in debug</a></p>
  
  <p>Than kyou very much for any information</p>