dolfies / discord.py-self

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

429 Too Many Requests (error code: 0): selfbots are against Discord's terms of service #587

Closed Yuviraaj closed 11 months ago

Yuviraaj commented 11 months ago

Summary

429 Too Many Requests (error code: 0): selfbots are against Discord's terms of service

Reproduction Steps

raise HTTPException(response, data) discord.errors.HTTPException: 429 Too Many Requests (error code: 0): selfbots are against Discord's terms of service

Code

No response

Expected Results

Run Smoothly

Actual Results

raise HTTPException(response, data) discord.errors.HTTPException: 429 Too Many Requests (error code: 0): selfbots are against Discord's terms of service

System Information

python -m discord -v

Checklist

Additional Information

No response

gudog23 commented 11 months ago

This is happening to me all the time☠

n0n1m commented 11 months ago

Also happening to me

dolfies commented 11 months ago

This is not an error returned by Discord or raised by the library itself. My guess is this is returned by some middleware or proxy, so there's nothing for me to do here. Are you by any chance using repl.it or a similar service?

dolfies commented 11 months ago

Looking into this further, it does seem like this is a Repl.it-only issue. They proxy the Discord API in an attempt to avoid IP bans that impact large groups of projects, adding their own internal rate limiting on top of Discord's rate limits. They now also check if the Authorization header is prefixed with "Bot" or "Bearer" in an attempt to block user account automation.

While there are ways around their proxying, I'm not going to outline them here. Please don't use services like Repl.it, they're really not designed for this.

triickster commented 11 months ago

use something like glitch/codesandbox/any vps service/render etc if you dont wanna self-host a sb

Marflux commented 9 months ago

@dolfies Please mention the ways around their proxying, repl.it is the only that works

did you find a way around their proxying?