-
Notifications
You must be signed in to change notification settings - Fork 802
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. |
Just making note that this issue is still around. This time it doesn't look like it received an HTML response, as the response begins with 'e':
|
I'm getting this same error message, very consistently, even when I shouldn't be ratelimited |
@un4gi and @DeathHound6 Can you enable debugging and log the packets so we can see what you're actually getting so we know what the issue is? That way we know if it's a valid response from Discord, something from cloudflare, or something else entirely. If you set the |
@bwmarrin Mine's ratelimited again (I realised after my last post that I'm on a shared host so it's likely others ratelimiting me) With the debug flag set to true, the response body from the gateway endpoint is simply |
Finally getting ratelimited again. Here is the whole debug error, with token and other sensitive info removed
The error traceback of this error also originates from |
I'm getting rate limited as well but only on one single command, any update on this? For me it only happens when using webhook edit function. |
Again, any update on this? I'm also encountering these errors a lot. |
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: