badges / badges/shields

PyPI downloads shield showing "rate limited by upstream service"

Open
#11,620 4 comments 8 reactions 0 assignees View on GitHub
needs-upstream-help service-badge
Dominant language
JavaScript
Stars
27.2k
Forks
5.6k
Avg merge
1d 8h
Merged PRs (30d)
46

Description

The PyPI Downloads badge seems to fairly often be showing up like this:

Image

I think for other services the cache time was increased to address the issue.

It might also be nice to have an option to tell shields.io to return a 0 width image in case of an error -- since I'm using it in a place where it would be "nice to have" but if it frequently shows an error message than I'd rather just remove it entirely than make users see an error message.

Contributor guide

Open the contributing guide

Research direction

Start by locating the PyPI Downloads badge and the upstream request and cache handling it uses. Reproduce the rate-limited response, then verify that the badge avoids frequent upstream errors through longer caching; consider the requested zero-width-on-error behavior separately and confirm the resulting image output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.