as-ideas / oil

191 stars 56 forks source link

Uncaught SyntaxError at JSON.parse #230

Closed jjgrainger closed 3 years ago

jjgrainger commented 5 years ago

I am seeing console errors when OIL tries to parse a string that is not JSON on this line.

It looks like this is because the message handler registered by OIL can pick up messages sent by other sources that do not contain a valid JSON string.

Below is the console error I'm seeing.

Uncaught SyntaxError: Unexpected token a in JSON at position 0
       at JSON.parse (<anonymous)
       at n (oil.1.2.5-RELEASE.min.js:16)

I'm happy to provide more information if needed.

Thanks