Skip to content

Crates.io Dependents upstream timeoutsΒ #11633

@jNullj

Description

@jNullj

Are you experiencing an issue with...

shields.io

🐞 Description

The Crates.io Dependents badge will frequently fail on first try.
After a small debug i noticed the following:

  1. some requests to upstream take over 8s to reply.
  2. second request to the same time is much quicker (i got 600ms for a crate that hit 5.5s at https://crates.io/api/v1/crates/proc-macro2/reverse_dependencies, our example, tokio takes over 10s the first try and 3.5 on the second try https://crates.io/api/v1/crates/tokio/reverse_dependencies).
  3. we fail daily tests

My guess is that the second request is quicker due to some kind of cache.

Image Image

πŸ”— Link to the badge

https://img.shields.io/crates/dependents/tokio

πŸ’‘ Possible Solution

seems like upstream issue and there is little we can do about this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs in badges and the frontendneeds-upstream-helpNot actionable without help from a service providerservice-badgeNew or updated service badge

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions