Skip to content

rustPlatform.importCargoLock errors out with HTTP 403 error #524979

Closed

Description

@PerchunPak

Rust package builds using fetchCargoVendor have started failing intermittently with HTTP 403 responses when downloading crate tarballs from https://crates.io/api/v1/crates/<name>/<version>/download. The failures are not caused by any recent change in nixpkgs, they're triggered server-side by crates.io, which has begun blocklisting specific python-requests/<version> User-Agent strings.

This was fixed for fetchCargoDeps in #512735, but importCargoLock is a separate fetcher that is still affected by this issue. Currently, this affects 106 packages out of all 2759 Rust packages (3.84%)

See also the upstream issue rust-lang/crates.io#13482

CC @emilazy @andresilva

Activity

  1. philiptaron commented on May 27, 2026

    @philiptaron
    Contributor

    I opened #524985 to attempt to fix this.

  2. added a commit that references this issue on May 27, 2026
    f830e61
  3. added 2 commits that reference this issue on May 27, 2026
    7218b61
    9b7dc78
  4. added 2 commits that reference this issue on May 29, 2026
    bf8d814
    5dd2b1a
  5. added a commit that references this issue on Sep 1, 2026
    91380d8
  6. added a commit that references this issue on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions