-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Python Socket.io client halts with message “Received unexpected packet of type 1” #100
Comments
Can you provide context? What code are you using, what error(s) do you get? |
My code is almost the same as the Stackoverflow link. |
Please provide the code, and the complete output of the script, including the error and the stack trace. |
It's not easy to provide because it's commercial code. |
I don't know. Never seen it before you pointed me to this question. I need some code to reproduce the problem to know more. |
if I could reproduce the problem, I will contact you. thanks |
i have revived the same problem |
Just a hint towards possible issue. According to engine.io protocol, the |
@szero thanks, I think I understand the problem now, which is actually simpler than I thought. I just did not implement the CLOSE packet for the client, it is an unintentional omission on my part. I will add this to the client. |
Uncertain if related, but in addition to the "unexpected packet of type 1", I also see unexpected packet of type 5, 56 or 35 and then on next message get a raise JSONDecodeError("Expecting value", s, err.value) from None. Sometimes works just fine, and sometimes get the error when testing the exact same message. (using the python socketio async client) |
@aaronjswank what server are you using? |
I am using flask_socketio with eventlet as main server |
@aaronjswank it's a different issue that I wasn't aware of. Easy to reproduce? Maybe you can share some code so that I can see the issue here? |
It's easy to reproduce. Let me see if I can trim the code down to something easy to share. |
Here is a quick extraction of code. Simple one word messages rarely cause issues. Multiple word sentences sometimes generate "received unexpected packet of type" errors. https://github.com/aaronjswank/flask-socketio-python-client |
my question is like this link, i don't know why,thanks
https://stackoverflow.com/questions/55099340/python-socket-io-client-halts-with-message-received-unexpected-packet-of-type-1
Thanks for answers
The text was updated successfully, but these errors were encountered: