Bot getting rate limited randomly? #1445
-
So I made a bot with this, but it keeps getting a "[WARN] [RateLimiter]" in the console and stops responding to commands for a while? The bot is only in one small server for me and my friends, so I'm not sure why it's getting rate limited |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Are you self-hosting? |
Beta Was this translation helpful? Give feedback.
-
I don't believe it has anything at all to do with self hosting (not trying to step on any toes here). What I firmly believe is going on is, if we look at the logs in the JMusicBot, this rate limit is happening once every 10 minutes give or take. Try this, get rid of the channel description where it updates what song is playing and see if the rate limit goes away. I firmly believe that is our culprit. We knew long ago this was going to be an issue back then and Discord just kicked us in the bean bags once again and lowered our refresh rates even more rendering the topic announcement for "Current Song" Useless at this point. I'm not sure else how to do this but the current way is pretty much now useless. Try it and see. What do you have to lose right? And if I am wrong, I stand corrected and at least we gave it a try for science. No one else here is trying to discuss it or solve it right? For the record, I am getting it too. Here is my logs: [WARN] [RateLimiter]: Encountered 429 on route PATCH/channels/{channel_id} with bucket .... and a bunch of numbers with channel id's. |
Beta Was this translation helpful? Give feedback.
I don't believe it has anything at all to do with self hosting (not trying to step on any toes here). What I firmly believe is going on is, if we look at the logs in the JMusicBot, this rate limit is happening once every 10 minutes give or take.
Try this, get rid of the channel description where it updates what song is playing and see if the rate limit goes away. I firmly believe that is our culprit. We knew long ago this was going to be an issue back then and Discord just kicked us in the bean bags once again and lowered our refresh rates even more rendering the topic announcement for "Current Song" Useless at this point. I'm not sure else how to do this but the current way is pretty muc…