dolfies / discord.py-self

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

Suddenly getting "Captcha required" #633

Closed pizzaserved closed 10 months ago

pizzaserved commented 11 months ago

Summary

Captcha required appears for some accounts

Reproduction Steps

Just trying to log in, join a DM, and getting the captcha login error: discord.errors.CaptchaRequired: 400 Bad Request (error code: -1): Captcha required

Code

No response

Expected Results

User logs in normally

Actual Results

File "D:\py\py.mq.midjourney\venv\lib\site-packages\discord\client.py", line 1940, in join_guild data = await state.http.join_guild(guild_id, lurking, state.session_id) File "D:\py\py.mq.midjourney\venv\lib\site-packages\discord\http.py", line 949, in request headers['X-Captcha-Key'] = await captcha_handler(e) File "D:\py\py.mq.midjourney\venv\lib\site-packages\discord\client.py", line 747, in handle_captcha raise exception File "D:\py\py.mq.midjourney\venv\lib\site-packages\discord\http.py", line 929, in request raise CaptchaRequired(response, data) # type: ignore discord.errors.CaptchaRequired: 400 Bad Request (error code: -1): Captcha required

System Information

Checklist

Additional Information

No response

dolfies commented 11 months ago

If you're being CAPTCHA'd in the library and not in the official client, you can try installing the (VERY ALPHA) refactor/tls branch like this:

$ git clone https://github.com/dolfies/discord.py-self --branch refactor/tls
$ cd discord.py-self
$ python3 -m pip install -U .[voice]
NeonLightning commented 2 months ago

is the tls branch still the suggested solution?