New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rate limit unmarchal error #659
Comments
@kubastick have you gotten more of these? From that bit of error information, it looks like somehow you got malformed json which could be a discord bug, cloudflare bug, a network issue, etc.. Just wondering if this is a consistently reoccurring issue or a one off glitch? |
This has just started happening to me. Even worse, it only seems to happen when I run it off of my main server, it doesn't happen when i run it off my desktop, which means it's likely some sort of cloudflare bug that's happening on a per-ip basis. I was trying to extract the exact value being passed to the response (since a |
FYI, I'm carrying a patch to treat these as a 2500ms ratelimit delay. |
@bwmarrin I started seeing these once I hit global rate limits. Prior to them I did not see any issues. |
Whenever cloudflare blows up, discordgo starts getting HTML responses from cloudflare for all requests, which looks like this:
This means every single part of the API starts returning invalid JSON and blows up all sorts of stuff. This is where the bug mentioned here comes from, and can be the cause of any related bugs. |
After few weeks of running our bots without issues, we encountered this issue which caused us to be rate-limited by cloudflare:
The text was updated successfully, but these errors were encountered: