例外:キャッチされないTypeError:encodedPayload.splitは関数ではありません
簡単なポーリング
例外なく
キャッチされていないTypeError:encodedPayload.splitは関数ではありません
Object.decodePayload(index.js?2a85:24)で
XHR.onDataで(polling.js?0949:105)
Request.evalで(polling-xhr.js?d33e:101)
Request.Emitter.emit(index.js?7297:145)で
Request.onDataで(polling-xhr.js?d33e:262)
Request.onLoadで(polling-xhr.js?d33e:329)
XMLHttpRequest.xhr.onreadystatechange(polling-xhr.js?d33e:217)で
私にも起こります
私もです。
それは奇妙です、 decodePayload()
メソッドは常に文字列で呼び出されるべきです...
ただし、 https://github.com/socketio/engine.io-client/commit/ec3f677e9240a8947b6a12e15e3fd77e9bbb51d5で修正される可能性があります。
@ darrachequesne 、3.0.1リリースの新しい例外
Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').
この問題の回避策はありますか? 現在、新しいサイトを開発しているので、ダウングレードできます。 今のところ、ダウングレードしても問題ないはずですが、誰かがもっと良いアイデアを持っているかもしれません。
最も参考になるコメント
@ darrachequesne 、3.0.1リリースの新しい例外
Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'arraybuffer').