dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
720 stars 165 forks source link

aiohttp.client_exceptions.ClientPayloadError: 400, message='Can not decode content-encoding: br' #673

Closed kvnspncr closed 7 months ago

kvnspncr commented 8 months ago

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

BerryGod1 commented 8 months ago

Same

capybarajtmc commented 7 months ago

Same error here.

kvnspncr commented 7 months ago

UPDATE Solved the issue by uninstalling and installing the aiohttp package with pip apparently it was either outdated or broken