shields icon indicating copy to clipboard operation
shields copied to clipboard

PyPI downloads shield shows "downloads inaccessible"

Open omri374 opened this issue 1 year ago • 10 comments

Are you experiencing an issue with...

shields.io

🐞 Description

Looks like there's a problem with the downloads badge. Example: https://img.shields.io/pypi/dm/pandas.svg

Image

🔗 Link to the badge

https://img.shields.io/pypi/dm/pandas.svg

💡 Possible Solution

No response

omri374 avatar Aug 03 '25 07:08 omri374

Badge tested using npm run badge https://img.shields.io/pypi/dm/pandas.svg Output is available here

github-actions[bot] avatar Aug 03 '25 07:08 github-actions[bot]

The log shows the upstream api responded with 502. Our upstream here is https://pypistats.org/ which seems to be down right now.

If anyone knows where we can report this issue to upstream to fix, it could be helpful.

jNullj avatar Aug 03 '25 20:08 jNullj

https://github.com/crflynn/pypistats.org/issues/82

omri374 avatar Aug 04 '25 04:08 omri374

I encountered the same issue a few days ago.

Image

ZhanZiyuan avatar Aug 04 '25 09:08 ZhanZiyuan

Can an alternative to pypistats.org be swapped in?

umarbutler avatar Aug 07 '25 13:08 umarbutler

Can an alternative to pypistats.org be swapped in?

I think we should give a little bit of time for upstream to response.

But I don't object looking into some of these if available. I have already seen pepy.tech mentioned, but seems like it requires a subscription and has a very limited rate limit. We might be able to ask them directly for higher rates, but i would want to see if we have other available alternative before that.

jNullj avatar Aug 07 '25 19:08 jNullj

Seems nothing is happening upstream so far. Author might be on summer vacay for a while judging by his Github profile

https://github.com/crflynn/pypistats.org/issues/82#issuecomment-3172483225

sigma67 avatar Aug 12 '25 10:08 sigma67

According to https://github.com/crflynn/pypistats.org/issues/82#issuecomment-3189840848, the Python Software Foundation may take over stewardship of this service. So perhaps waiting for the upstream service to return to normal is possible.

weinibuliu avatar Aug 22 '25 14:08 weinibuliu

This is now fixed: https://github.com/psf/pypistats.org/issues/82#issuecomment-3214903211

hugovk avatar Aug 22 '25 21:08 hugovk

The original issue as well as the root cause is solved. https://img.shields.io/pypi/dm/pandas.svg screenshot: Image live:

Thank you for reporting and anyone who helped both here and upstream.

jNullj avatar Aug 23 '25 10:08 jNullj