sdlink icon indicating copy to clipboard operation
sdlink copied to clipboard

[Bug]: RateLimit / Too Many Presence Updates

Open kanapuro opened this issue 2 months ago • 3 comments

🐞 Description

The bot is hitting WebSocket ratelimit despite no players being online. Unsure if related to connection issues at 12 AM EST last night.

🔄 Steps to reproduce

N/A

✅ Expected behavior

Should not be hitting ratelimit.

❌ Actual behavior

Is hitting ratelimit.

🎮 Minecraft Version

1.21.5

🛠️ Mod Version

3.3.3

📦 Mod Loader

Fabric

🔧 Mod Loader Version

0.17.2

📚 CraterLib Version

2.1.5

📜 Logs & Screenshots

console log.txt

kanapuro avatar Oct 28 '25 16:10 kanapuro

Keeping in mind the bot is only used for syncing chat/console between Discord server and game server. It should not be doing anything else.

kanapuro avatar Oct 28 '25 16:10 kanapuro

Yeah, those errors are related to the outage.

When the bot temporarily disconnects from discord, specifically due to loss of internet, or drop in connection, some things will back up into a queue.

The status updates being one of them. Once the bot reconnects, it will try to dump them all super fast after each other, causing the ratelimit warning. Note, that's just a warning and the library handling the rate itself, not discord yelling at you.

So overall you can ignore it. If you do not use or want to use the status updates on the bot, just set the update time to 0 and it will disable the updates

hypherionmc avatar Oct 28 '25 16:10 hypherionmc

Thanks so much for the clarification!

kanapuro avatar Oct 28 '25 20:10 kanapuro