Skip to content

Toolchain installation fails with "GitHub API returned status code: 401 Unauthorized" #595

Closed

Description

@xobs

Bug description

I'm following the instructions for installing via espup on https://docs.espressif.com/projects/rust/book/getting-started/toolchain.html#xtensa-devices and I'm unable to install anything. The instructions don't list any alternatives.

To Reproduce

Steps to reproduce the behavior:

  1. Install espup with cargo install espup --locked
  2. Run espup install

Expected behavior

espup should be installed, as the docs say.

Screenshots

$ cargo install espup --locked

    Updating crates.io index
  Downloaded espup v0.17.1
  Downloaded 1 crate (58.5KiB) in 0.07s
  Installing espup v0.17.1
[...]
   Compiling update-informer v1.3.0
   Compiling espup v0.17.1
    Finished [`release` profile [optimized]](https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles) target(s) in 43.56s
  Installing /Users/seancross/.cargo/bin/espup
   Installed package `espup v0.17.1` (executable `espup`)

$ espup install
[warn]: A new version of espup ('v0.18.0') is available
[info]: Installing the Espressif Rust ecosystem
[warn]: Failed to get latest Xtensa Rust version: HTTP GET Error: GitHub API returned status code: 401 Unauthorized
Error: espup::toolchain::http_error

  × HTTP GET Error: GitHub API returned status code: 401 Unauthorized

$

Environment

  • OS: macOs 26.5.2 (25F84)
  • espup version: 0.17.1

Additional context

The command says v0.18.0 is available, but cargo install doesn't seem to know about it.

Activity

  1. added
    bug
    bug jury
    on Oct 23, 2026
  2. xobs commented on Oct 23, 2026

    @xobs
    Author

    I note in the README.md there's a note about setting a token environment variable, but (1) that says it only applies to CI, and (2) it's not mentioned anywhere in https://docs.espressif.com/projects/rust/book/getting-started/toolchain.html#xtensa-devices as being required.

  3. linked a pull request that will close this issueFix/ignore yanked updates #597on Oct 23, 2026
  4. moved this from Todo to Review in esp-rs on Oct 23, 2026
  5. moved this from Review to Done in esp-rs on Oct 27, 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

    bugbug jury

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions