#๐Ÿ”’ Python Discord Bot, WARNING discord.http We are being rate limited.]

21 messages ยท Page 1 of 1 (latest)

brave grove
#

Im in the progress of creating a discord python bot, the goal is the have a bot where I can go in any server and run a !setup command and it will configure all the categories, channels, roles etc. Only problem is when I run the bot I keep hitting a specific terminal error.

floral hearthBOT
#

@brave grove

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

brave grove
#

2024-05-15 21:44:35 WARNING discord.http We are being rate limited. POST https://discord.com/api/v10/guilds/1239649086701965463/roles responded with 429. Retrying in 451.06 seconds.

#

I've noticed that the !delete command works well, however the error gets throw out when the !setup command is being run

primal tulip
#

I won't be surprised if the ratelimit for creating roles is just very low, in which case there's nothing you can do of it

brave grove
#

Do you know what the limit is? is it daily? hourly?

#

Another frustration I have is I cant tell if my bot is broken due to the limit or if the code is dodgy.

Im unable to troubleshoot it

primal tulip
brave grove
#

Is ratelimit based on my bot or the server its in? if you were to run the code would it work?

primal tulip
#

There are global limits too but generally it's per-route, so in this case would probably be for that server only:

As an example, if you exceeded a rate limit when calling one endpoint /channels/1234, you could still call another similar endpoint like /channels/9876 without a problem.

brave grove
#

I see, im going to test it on a new server ones second

primal tulip
floral hearthBOT
#

discord/http.py line 719

fmt = 'We are being rate limited. %s %s responded with 429. Retrying in %.2f seconds.'```
brave grove
#

quite lengthy wait times

#

creating a new test server did resolve this for me, no doubt it will be back

#

thanks

#

!close

floral hearthBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.