Skip to content

espup install fails with 400 Bad Request when querying GitHub API for latest Xtensa Rust version #517

@adsgodlove

Description

@adsgodlove

Hi there,

I'm encountering an issue when trying to install the Espressif Rust ecosystem using espup. The installation fails when querying the GitHub API for the latest Xtensa Rust version, returning a 400 Bad Request error. Here are the details:

Steps to Reproduce

Run the command:

espup install -l debug

Expected Behavior

espup should successfully fetch the latest Xtensa Rust version from the GitHub API and proceed with the installation.

Actual Behavior

The installation fails with the following error:

[warn]: Failed to get latest Xtensa Rust version: HTTP GET Error: GitHub API returned status code: 400 Bad Request
Error: espup::toolchain::http_error

  × HTTP GET Error: GitHub API returned status code: 400 Bad Request

Debug Logs

Relevant debug logs show repeated attempts to connect to the GitHub API:

[debug]: Querying latest Xtensa Rust version from GitHub API
[debug]: Querying GitHub API: 'https://api.github.com/repos/esp-rs/rust-build/releases/latest'
[debug]: starting new connection: https://api.github.com/
[debug]: starting new connection: https://api.github.com/
[debug]: starting new connection: https://api.github.com/
[debug]: starting new connection: https://api.github.com/
[debug]: starting new connection: https://api.github.com/
[debug]: starting new connection: https://api.github.com/

Additional Information

  • When I manually query the same GitHub API endpoint using curl, it returns a valid response with the latest release information (v1.88.0.0).
  • My environment: macOS (using a MacBook Pro)
  • espup version: Not explicitly confirmed, but the latest available via crates.io (as the tool successfully fetches data from crates.io earlier in the process)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions