I just started my script and instead of logging in as per usual I've got this error.
Here's the complete traceback
File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 938, in run
asyncio.run(runner())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 927, in runner
await self.start(token, reconnect=reconnect)
File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 857, in start
await self.login(token)
File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 698, in login
data = await state.http.static_login(token.strip())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevin/.local/lib/python3.11/site-packages/discord/http.py", line 991, in static_login
await self.startup()
File "/home/kevin/.local/lib/python3.11/site-packages/discord/http.py", line 562, in startup
self.super_properties, self.encoded_superproperties = sp, = await utils._get_info(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevin/.local/lib/python3.11/site-packages/discord/utils.py", line 1447, in _get_info
bn = await _get_build_number(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevin/.local/lib/python3.11/site-packages/discord/utils.py", line 1474, in _get_build_number
login_page = await login_page_request.text()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevin/.local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1076, in text
await self.read()
File "/home/kevin/.local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1032, in read
self._body = await self.content.read()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kevin/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 344, in read
raise self._exception
aiohttp.client_exceptions.ClientPayloadError: 400, message='Can not decode content-encoding: br'
kevin@anon:~/usb/bullshit/selfbot$
Code
No response
Expected Results
Log in with the user account token
Actual Results
I've got this error
System Information
Python v3.11.6-final
discord.py-self v2.0.0-final
aiohttp v3.7.4.post0
system info: Linux 6.7.3-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:03:55 +0000
Checklist
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
Summary
It errors out
Reproduction Steps
I just started my script and instead of logging in as per usual I've got this error. Here's the complete traceback
File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 938, in run asyncio.run(runner()) File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 927, in runner await self.start(token, reconnect=reconnect) File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 857, in start await self.login(token) File "/home/kevin/.local/lib/python3.11/site-packages/discord/client.py", line 698, in login data = await state.http.static_login(token.strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kevin/.local/lib/python3.11/site-packages/discord/http.py", line 991, in static_login await self.startup() File "/home/kevin/.local/lib/python3.11/site-packages/discord/http.py", line 562, in startup self.super_properties, self.encoded_superproperties = sp, = await utils._get_info(session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kevin/.local/lib/python3.11/site-packages/discord/utils.py", line 1447, in _get_info bn = await _get_build_number(session) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kevin/.local/lib/python3.11/site-packages/discord/utils.py", line 1474, in _get_build_number login_page = await login_page_request.text() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kevin/.local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1076, in text await self.read() File "/home/kevin/.local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1032, in read self._body = await self.content.read() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kevin/.local/lib/python3.11/site-packages/aiohttp/streams.py", line 344, in read raise self._exception aiohttp.client_exceptions.ClientPayloadError: 400, message='Can not decode content-encoding: br' kevin@anon:~/usb/bullshit/selfbot$
Code
No response
Expected Results
Log in with the user account token
Actual Results
I've got this error
System Information
Checklist
Additional Information
No response