uv: uv 0.7.10: "Connection reset by peer" on macOS Apple Silicon

Summary

Hi,

After a fresh installation of uv 0.7.10 all PyPI connections fail with “Connection reset by peer (os error 54)” on macOS Apple Silicon. Same operations on uv 0.7.9 work perfectly.

Minimal Reproduction

tmp git:(main) ✗ uv --version
uv 0.7.10 (1e5120e15 2025-06-03)
➜  tmp git:(main) ✗ uv add jupyter
⠇ tmp==0.1.0                                                                                                                                                error: Failed to fetch: `https://pypi.org/simple/jupyter/`
  Caused by: Request failed after 3 retries
  Caused by: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
➜  tmp git:(main) ✗ uv cache clean
Clearing cache at: /Users/lucarosa/.cache/uv
Removed 5 files (1.6KiB)
➜  tmp git:(main) ✗ rm ~/.local/bin/uv ~/.local/bin/uvx
➜  tmp git:(main) ✗ curl -LsSf https://astral.sh/uv/0.7.9/install.sh | sh
downloading uv 0.7.9 aarch64-apple-darwin
no checksums to verify
installing to /Users/lucarosa/.local/bin
  uv
  uvx
everything's installed!
➜  tmp git:(main) ✗ uv add jupyter
Resolved 102 packages in 468ms
Audited 98 packages in 0.10ms

This happen everytime regardless of the package. Here the error when run with --verbose

tmp git:(main) ✗ uv add numpy --verbose
DEBUG uv 0.7.10 (1e5120e15 2025-06-03)
DEBUG Found project root: `/Users/lucarosa/learndir/tmp`
DEBUG No workspace root found, using project root
DEBUG Acquired lock for `/Users/lucarosa/learndir/tmp`
DEBUG Reading Python requests from version file at `/Users/lucarosa/learndir/tmp/.python-version`
DEBUG Using Python request `3.13` from version file at `.python-version`
DEBUG Checking for Python environment at `.venv`
DEBUG The project environment's Python version satisfies the request: `Python 3.13`
DEBUG Released lock at `/var/folders/wz/ggwcpk2s1jq9hk80m_6t9vmr0000gn/T/uv-60938af87eca11c1.lock`
DEBUG Using request timeout of 30s
DEBUG Found static `pyproject.toml` for: tmp @ file:///Users/lucarosa/learndir/tmp
DEBUG No workspace root found, using project root
DEBUG Ignoring existing lockfile due to mismatched requirements for: `tmp==0.1.0`
  Requested: {Requirement { name: PackageName("jupyter"), extras: [], groups: [], marker: true, source: Registry { specifier: VersionSpecifiers([VersionSpecifier { operator: GreaterThanEqual, version: "1.1.1" }]), index: None, conflict: None }, origin: None }, Requirement { name: PackageName("numpy"), extras: [], groups: [], marker: true, source: Registry { specifier: VersionSpecifiers([]), index: None, conflict: None }, origin: None }}
  Existing: {Requirement { name: PackageName("jupyter"), extras: [], groups: [], marker: true, source: Registry { specifier: VersionSpecifiers([VersionSpecifier { operator: GreaterThanEqual, version: "1.1.1" }]), index: None, conflict: None }, origin: None }}
DEBUG Solving with installed Python version: 3.13.3
DEBUG Solving with target Python version: >=3.13
DEBUG Adding direct dependency: tmp*
DEBUG Searching for a compatible version of tmp @ file:///Users/lucarosa/learndir/tmp (*)
DEBUG Adding direct dependency: jupyter>=1.1.1
DEBUG Adding direct dependency: numpy*
DEBUG No cache entry for: https://pypi.org/simple/jupyter/
DEBUG No cache entry for: https://pypi.org/simple/numpy/
DEBUG Transient request failure for unknown URL, retrying: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
DEBUG Transient request failure for unknown URL, retrying: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
DEBUG Transient request failure for unknown URL, retrying: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
DEBUG Transient request failure for unknown URL, retrying: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
DEBUG Transient request failure for unknown URL, retrying: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
DEBUG Transient request failure for unknown URL, retrying: error sending request
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)
DEBUG Reverting changes to `pyproject.toml`
DEBUG Reverting changes to `uv.lock`

Platform

mac OS 15.5 arm64

Version

0.7.10

Python version

Python 3.13.3

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

HI @lucarosa, sorry to bother you again, would you be willing to test https://github.com/astral-sh/uv/pull/13912 to confirm that this version has fixed the regression?

Thanks for testing! Downgrading hyper-util to 0.1.12 worked, so it really looks like https://github.com/hyperium/hyper-util/pull/194.

If you’re getting “connection reset by peer” that means the TCP connect succeeded but the other side immediately hung up on you after connecting, right? In that case, a change to the order of addresses will actually make a difference, in that Happy Eyeballs will see a successful connection and pass that onto the higher layer, and never try the later addresses.

It’s still failing

 tmp git:(main) ✗ ../uv/target/release/uv --version
uv 0.7.10+6 (e863001f5 2025-06-04)
➜  tmp git:(main) ✗ ../uv/target/release/uv add numpy
⠇ tmp==0.1.0
error: Failed to fetch: `https://pypi.org/simple/numpy/`
  Caused by: Request failed after 3 retries
  Caused by: error sending request for url (https://pypi.org/simple/numpy/)
  Caused by: client error (Connect)
  Caused by: Connection reset by peer (os error 54)