You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing the Furioos SDK with debugAppMode: true, an exception is thrown when the sign-in message ({"type" :"signIn","peerName" :"SDK_APP"}) is received from the application:
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
_wsOnMessage SDKDebug.js:33
onmessage SDKDebug.js:12
SDKDebug SDKDebug.js:12
Player Player.js:112
[1]< index.js:6
o _prelude.js:1
r _prelude.js:1
<anonymous> _prelude.js:1
It seems that JSON.parse is passed an ArrayBuffer instead of a string in _wsOnMessage
This can be fixed by decoding the ArrayBuffer before parsing its content:
When testing the Furioos SDK with debugAppMode: true, an exception is thrown when the sign-in message (
{"type" :"signIn","peerName" :"SDK_APP"}
) is received from the application:It seems that
JSON.parse
is passed anArrayBuffer
instead of a string in_wsOnMessage
This can be fixed by decoding the
ArrayBuffer
before parsing its content:However, the message will be discarded because it is not recognized by the following test:
The text was updated successfully, but these errors were encountered: