Исключение: Uncaught TypeError: encodedPayload.split не является функцией
Простой опрос
Без исключений
Uncaught 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').
Есть ли способ обхода этой проблемы? В настоящее время мы разрабатываем новый сайт, поэтому я могу перейти на более раннюю версию. На данный момент все должно быть хорошо, чтобы перейти на более раннюю версию, но, может быть, у кого-то есть идея получше?
Это должно быть исправлено https://github.com/socketio/engine.io-client/commit/ec3f677e9240a8947b6a12e15e3fd77e9bbb51d5 и https://github.com/socketio/engine.io-client/commit/89cb771cf0d26426bda603ee01d3b5a225e9f3c0 , которые включены в [email protected]
и [email protected]
.
Самый полезный комментарий
@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').