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
invalid payload error on socket_error event #4830
Comments
I found the bug i am not sure is it from client library or server but the problem is happening from "Ack Callback". webSocket.emit("client.register-room", username, new Ack() {
@Override
public void call(Object... args) {
isRegistered=true;
}
}); When i run this method server closing socket and firing invalid payload error. It is really interesting. Did not anybody use ACK callback on Java Client? |
Hi! Thanks a lot for all the details. In the payload Not sure how it could happen though. |
Describe the bug
I am trying to implementation android and nodejs server. When i am connect to server from android device i am getting invalid payload after 5-6 sec. I tried many things. I've checked #4392 issue but there is not any solve way. I can see the first emit when i connect to server but after some sec later my connection closing.
This issue is not happening all clients. Only some of them about %10 of clients.
I have an apache server which is reverse proxying to my socket.
The config of apache server
Server side socket.io version is: "socket.io": "4.7.2"
Android side socket.io-client version is : implementation 'io.socket:socket.io-client:2.1.0'
Android Version: [8,9,10,11,12,13]
Server side codes
Error information
The text was updated successfully, but these errors were encountered: