Skip to content

Cargo download dependency failed "send: no filter connected" #12202

@yuyang-ok

Description

@yuyang-ok

Problem

Cargo download dependency failed

This issue I filed on rust forum before, But I didn't get enough useful information.


Edited by a maintainer

The error may look like:

% cargo t -v

**error****:** failed to download from `https://crates.io/api/v1/crates/zstd-sys/2.0.7+zstd.1.5.4/download`

Caused by:

[2] Failed initialization ([CONN-1-0] send: no filter connected)

This is due to a bug in some bad versions of libcurl, whose HTTP/2 multiplexing is not compatible with http proxy settings. The affected versions are:

  • 7.87.0
  • 7.88.0
  • 7.88.1

If you're on macOS and your system libcurl is included, we suggest

  • either using Rust version 1.71, beta-2023-06-09, nightly-2023-06-11 or newer
  • or disabling http.multiplexing manually in .cargo/config.toml or CARGO_HTTP_MULTIPLEXING=false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-networkingArea: networking issues, curl, etc.C-bugCategory: bugS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions