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

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

Closed
3 tasks done
kvnspncr opened this issue Mar 11, 2024 · 4 comments
Closed
3 tasks done
Labels
unconfirmed bug Unconfirmed bug

Comments

@kvnspncr
Copy link

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_super_properties = 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

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@kvnspncr kvnspncr added the unconfirmed bug Unconfirmed bug label Mar 11, 2024
@BerryGod1
Copy link

Same

@capybarajtmc
Copy link

Same error here.

@kvnspncr
Copy link
Author

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

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

No branches or pull requests

4 participants
@BerryGod1 @kvnspncr @capybarajtmc and others