discord-jda / JDA

Java wrapper for the popular chat & VOIP service: Discord https://discord.com
Apache License 2.0
4.34k stars 735 forks source link

Rate Limit #1369

Closed DevJoey closed 4 years ago

DevJoey commented 4 years ago

General Troubleshooting

Question

I have try to shutdown my bot but i get this ugly message [DefaultShardManager] INFO RateLimiter - Waiting for 1 bucket(s) to finish. Average queue size of 0 requests

How i can fix this?

Example Code

shardManager.shutdown();

Andre601 commented 4 years ago

You can't "fix" this. This was added a while back, with the reason of informing a user about why a bot might still be online (iirc).

That's not something you can disable to my knowledge (I can be wrong here tho)

DManstrator commented 4 years ago

I mean you can adjust the logging level so the message is not displayed but that won't fix the issue that somehow 1 bucket has 0 requests left.

Andre601 commented 4 years ago

I mean you can adjust the logging level so the message is not displayed but that won't fix the issue that somehow 1 bucket has 0 requests left.

Not really an issue imo. It's just JDA saying that 1 bucket had 0 requests queued at the time of shutdown, which had to finish first, which in this case would be an instant shutdown.

DevJoey commented 4 years ago

Ah ok, thanks for help. Now iknow what the message is :)