Skip to content

[socket.io.js:2954]: Error: invalid payload #4392

@demaupeoucorentin

Description

@demaupeoucorentin

Describe the bug
When emitting the initialize function from the client, without params, it crashes with this fatal error sometimes.

To Reproduce

Reproduced randomly, we don't find how does it appear.

Please fill the following code example:

Socket.IO server version: 4.5.1

Server

private

Socket.IO client version: 4.5.1

Client

private

Expected behavior
The multiplayer does not work.

The entire error :

[socket.io.js:2887]: Error: invalid payload

decodeString@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:2887:19
add@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:2779:25
ondata@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:3982:22
Emitter.prototype.emit@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:583:22
onPacket@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:2226:20
Emitter.prototype.emit@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:583:22
onPacket@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:945:66
callback@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:1190:18
onData@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:1194:53
Emitter.prototype.emit@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:583:22
onData@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:1533:14
onLoad@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:1587:16
create/xhr.onreadystatechange@https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.js:1486:22

Platform:
I’m on macOS with Firefox 101.0.1 (on Brave macOS + on my iPhone with Chrome does not work too)
On iOS, even on Windows

Thanks a lot for your help and have a good day,
Corentin

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions