shields icon indicating copy to clipboard operation
shields copied to clipboard

Discord Badge has rate limit error

Open cech12 opened this issue 1 year ago β€’ 15 comments

Are you experiencing an issue with...

shields.io

🐞 Description

I am using your shields.io service to generate Discord badges for my Discord server. But since some days the badge looks like that: grafik I don't know what I am doing wrong or if this is an issue on your side. Thanks for your help! :)

πŸ”— Link to the badge

https://img.shields.io/discord/752506676719910963.svg?style=flat&color=informational&logo=discord&label=Discord

πŸ’‘ Possible Solution

No response

cech12 avatar Jun 06 '24 06:06 cech12

Badge tested using npm run badge https://img.shields.io/discord/752506676719910963.svg?style=flat&color=informational&logo=discord&label=Discord Output is available here

github-actions[bot] avatar Jun 06 '24 06:06 github-actions[bot]

We've been occasionally hitting the discord rate limits for some time. We've been tracking this in https://github.com/badges/shields/issues/9862 but it has been quite a limited issue

However, in the last few days we seem to have had a huge increase in the number of 429 calling https://discord.com errors:

Screenshot at 2024-06-06 20-00-47

As far as I can see from the metrics we haven't had a huge increase in the number of badges being requested so I think something has changed upstream. Maybe the rate limit on our token has been massively decreased. @PyvesB - is the token attached to your account? Do you have any visibility on this?

chris48s avatar Jun 06 '24 19:06 chris48s

As far as #9862 is concerned, the last I heard from our point of contact at Discord was that he was working on identifying the team owning the rate limiting capabilities internally. However, it's been a while since I last heard from him, I've followed up linking to this new issue. Will keep you posted when I get his response.

PyvesB avatar Jun 06 '24 21:06 PyvesB

However, it's been a while since I last heard from him, I've followed up linking to this new issue. Will keep you posted when I get his response.

Thanks a lot for your effort.

Xuanwo avatar Jun 07 '24 06:06 Xuanwo

Hope this will be resolved! :)

waydabber avatar Jun 08 '24 07:06 waydabber

As a workaround ive made a little PHP script that uses the custom shields badge text in conjunction with Discord widget API to make the same behaviour. (You have to host it yourself)

Use this as: http://yourwebsite.com/badge.php?id=yourserverid

Heres a working example: discord

Heres the code: https://gist.github.com/TriForceX/a8332709718851ea1bf0cad15f3a2600

PS: Ive used get method to allow more ids to be added, but it can be modified.

TriForceX avatar Jun 13 '24 06:06 TriForceX

We are also seeing this issue with our Discord badges at Ultralytics and it would be great to have a resolution to this, otherwise we'll have to find a replacement badge to use in our repos and docs pages.

Burhan-Q avatar Jun 19 '24 12:06 Burhan-Q

We observe the same problem with our Restate repositories.

tillrohrmann avatar Jun 19 '24 13:06 tillrohrmann

I've sent another follow up mail. I received one out of office automated response, and one response saying they'll escalate tomorrow. Fingers crossed 🀞🏻

PyvesB avatar Jun 19 '24 17:06 PyvesB

Same here in all my README

syorito-hatsuki avatar Jun 19 '24 21:06 syorito-hatsuki

Also seeing this issue with SteamGridDB repositories, the badge has been in a non working state continuously as far as I can tell.

cbartondock avatar Jun 20 '24 16:06 cbartondock

People might want to check out NoPlusOne from go wiki. (Of course, The project admins will delete such comments as a matter of procedure (please don’t be offended if we delete yours). won't apply as this is not go project and I don't have the permission necessary to do it on this repo)

revi avatar Jun 20 '24 19:06 revi

We are already aware this is affecting 100% of users.

I've locked this issue due the "plus 1" comments. I think that this stage allowing anyone to comment on this issue is unhelpful.

Please feel free to subscribe to the issue for updates. We will continue to update once we know something.

chris48s avatar Jun 20 '24 19:06 chris48s

The full outage got resolved a few days ago. I'm still trying to figure out with the Discord team what may have happened, I'm presently unclear on what triggered this incident in the first place, and what resolved it.

We're still getting occasional small spikes of errors, essentially what was reported in #9862. I've reiterated our request to update our rate limits.

PyvesB avatar Jul 02 '24 17:07 PyvesB

I've reiterated our request to update our rate limits.

Unfortunately, I've not heard back, even after following up again in the meantime.

PyvesB avatar Sep 14 '24 06:09 PyvesB