New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: encodedPayload.split is not a function #1391
Comments
also happens to me |
Me either. |
Since Engine.IO v4, the binary payloads are always encoded as base64 with the polling transport. See https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4 Possibly related: socketio/socket.io-client#1391
That's weird, the It might be fixed by socketio/engine.io-client@ec3f677 though. |
@darrachequesne , new exception in 3.0.1 release
|
The `supportsBinary` attribute and the `forceBase64` option are kept untouched, though they are not used by the polling transport, which now always converts the payloads to base64. Related: socketio/socket.io-client#1391
Any workaround for this issue? Currently we are developing a new site, so i could downgrade. For now it should be fine to downgrade, but maybe someone has a better idea? |
This should be fixed by socketio/engine.io-client@ec3f677 and socketio/engine.io-client@89cb771, which are included in |
You want to:
Current behaviour
Exception: Uncaught TypeError: encodedPayload.split is not a function
Steps to reproduce
Simple polling
Expected behaviour
No exceptions
Setup
Other information (e.g. stacktraces, related issues, suggestions how to fix)
Uncaught TypeError: encodedPayload.split is not a function
at Object.decodePayload (index.js?2a85:24)
at XHR.onData (polling.js?0949:105)
at Request.eval (polling-xhr.js?d33e:101)
at Request.Emitter.emit (index.js?7297:145)
at Request.onData (polling-xhr.js?d33e:262)
at Request.onLoad (polling-xhr.js?d33e:329)
at XMLHttpRequest.xhr.onreadystatechange (polling-xhr.js?d33e:217)
The text was updated successfully, but these errors were encountered: