Skip to content

cargo upgrade returns 401 consistently even after changing registry token #931

@shrasrir

Description

@shrasrir
% cargo upgrade                            
    Checking virtual workspace's dependencies
Error: status code '401 Unauthorized': the request was not authorized

cargo upgrade --verbose dont seem to give any extra details on the error.

Tried the following:

  1. removing all cache
  2. renewing the token in config.toml
  3. cargo search --registry internal-registry-name internal-feature works fine with the token enabled
  4. other cargo commands like cargo clean, cargo build, cargo test all work fine

This was working fine for many months and seeing this issue only the last couple months now.

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