Skip to content

Python downloads do not retry on stream errors #13238

@zanieb

Description

@zanieb

e.g.

----- stderr -----
error: Failed to install cpython-3.13.3-linux-x86_64-gnu
  Caused by: Failed to download https://github.com/astral-sh/python-build-standalone/releases/download/20250409/cpython-3.13.3%2B20250409-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
  Caused by: Request failed after 1 retries
  Caused by: error sending request for url (https://github.com/astral-sh/python-build-standalone/releases/download/20250409/cpython-3.13.3%2B20250409-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz)
  Caused by: client error (SendRequest)
  Caused by: http2 error
  Caused by: stream error received: refused stream before processing any application logic
error: Failed to install cpython-3.11.11-linux-x86_64-gnu
  Caused by: Failed to extract archive: cpython-3.11.11-20250317-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
  Caused by: Invalid gzip header

Did this regress in #12175? I know the download was tweaked.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions