Skip to content
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

Bad version number. Expected 131 found 120 #55

Open
MahdiAw opened this issue Sep 16, 2022 · 0 comments
Open

Bad version number. Expected 131 found 120 #55

MahdiAw opened this issue Sep 16, 2022 · 0 comments

Comments

@MahdiAw
Copy link

MahdiAw commented Sep 16, 2022

from websocket import create_connection
from erlpack import pack
from erlpack import unpack
ws = create_connection("wss://gateway.discord.gg/?encoding=json&v=9&compress=zlib-stream")
response = ws.recv()
response
b'x\x9c4\xc9A\n\xc20\x10\x05\xd0\xbb\xfcu"\xa9(\xc8\\xa5)elG\r\xa4i\x99\x8e\x8a\x84\xdc]7\xee\x1e\xbc\n\x03\x95g\xce\x0e\xfb\x1f\xeb\x06\xea\x82\xc3\x0c\xaax\x08\xab]\x85mL\xc5D_\x9cA\xa7\xeex\xfe\xfdh\xca\x93\x80z\xf4\x11w6y\xf3\xc7o:\xfb\x85S\xf1v)\xb7\x08W#\x964\xe9\xbaGP8\x846`h\xed\x0b\x00\x00\xff\xff'
unpack(response)
Traceback (most recent call last):
File "", line 1, in
File "py/erlpack/_unpacker.pyx", line 29, in erlpack._unpacker.ErlangTermDecoder.loads
erlpack._unpacker.ErlangTermDecodeError: Bad version number. Expected 131 found 120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant