-
-
Notifications
You must be signed in to change notification settings - Fork 579
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
ValueError: invalid literal for int() with base 10: b'%' #39
Comments
Okay. Looking at my fix from the other day, while it is a step in the right direction, does not do much to prevent the case of packets that are accepted into the system in the wrong order.
This is indeed strange. The error message above suggests the payload was binary, starting with the % character, likely the first character in the PDF data. |
@Schnodderbalken could you try downgrading python-engineio to 0.9.1 and retest? If my theory is correct, you will not be able to get the error with 0.9.1. |
@miguelgrinberg I did some changes to my application which led to this problem not occurring anymore (although this might only addresses the symptoms). The assumption that it could be connected to the version of python-engineio looks reasonable to me. That could explain why the problems only started since I upgraded my applciation to python 3.5 (including the corresponding dependencies which python-engineio 0.9.2. might be one of). I'm sorry I can not validate your assumption right now. I will report whenever this happens again. |
The bug happened again. Downgrading python-engineio to 0.9.1 did the trick. Do you know how to fix it then? Or can I assist any further? |
@Schnodderbalken I know what the problem is, but I don't have a fix ready yet. No problem with staying on 0.9.1. The 0.9.2 release has what I expected would be a performance improvement, but it affected the handling of multi-packet payloads. |
Alright then I will stick with the old version until it's fixed. Thank you. |
You can now upgrade to python-socketio 1.5.0, and this problem should be gone. Note that this upgrade should also carry an upgrade to python-engineio 1.0.0. |
Perfect, thanks for the effort. |
I'm sorry but it seems that your measure discussed in here #37 did not entirely fix the problem.
I continued implementing my frontend part and now problems occurred again.
Strange: if I print the payload the library tries to decode it's not even a binary string. It's some other request. So if there are many requests - some having binary content in a dictionary and some having only string content in a dictionary - there seems to be a confusion about the different requests.
The text was updated successfully, but these errors were encountered: