Skip to content

Commit cd71ad1

Browse files
authored
Show retries for HTTP status code errors (#13897)
Using a companion change in the middleware (TrueLayer/reqwest-middleware#235, forked&tagged pending review), we can check and show retries for HTTP status core errors, to consistently report retries again. We fix two cases: * Show retries for status code errors for cache client requests * Show retries for status code errors for Python download requests Not handled: * Show previous retries when a distribution download fails mid-streaming * Perform retries when a distribution download fails mid-streaming * Show previous retries when a Python download fails mid-streaming * Perform retries when a Python download fails mid-streaming
1 parent 7c90c5b commit cd71ad1

File tree

12 files changed

+205
-146
lines changed

12 files changed

+205
-146
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
# Generated by Cargo
55
# will have compiled files and executables
6+
/vendor/
67
debug/
7-
target/
88
target-alpine/
9+
target/
910

1011
# Bootstrapped Python versions
1112
/bin/

Cargo.lock

Lines changed: 15 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ reflink-copy = { version = "0.1.19" }
143143
regex = { version = "1.10.6" }
144144
regex-automata = { version = "0.4.8", default-features = false, features = ["dfa-build", "dfa-search", "perf", "std", "syntax"] }
145145
reqwest = { version = "=0.12.15", default-features = false, features = ["json", "gzip", "deflate", "zstd", "stream", "rustls-tls", "rustls-tls-native-roots", "socks", "multipart", "http2", "blocking"] }
146-
reqwest-middleware = { version = "0.4.0", features = ["multipart"] }
147-
reqwest-retry = { version = "0.7.0" }
146+
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8", features = ["multipart"] }
147+
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8" }
148148
rkyv = { version = "0.8.8", features = ["bytecheck"] }
149149
rmp-serde = { version = "1.3.0" }
150150
rust-netrc = { version = "0.1.2" }
@@ -372,6 +372,10 @@ riscv64gc-unknown-linux-gnu = "2.31"
372372
"actions/download-artifact" = "d3f86a106a0bac45b974a628896c90dbdf5c8093" # v4.3.0
373373
"actions/attest-build-provenance" = "c074443f1aee8d4aeeae555aebba3282517141b2" #v2.2.3
374374

375+
[patch.crates-io]
376+
reqwest-middleware = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8" }
377+
reqwest-retry = { git = "https://github.com/astral-sh/reqwest-middleware", rev = "ad8b9d332d1773fde8b4cd008486de5973e0a3f8" }
378+
375379
[workspace.metadata.dist.binaries]
376380
"*" = ["uv", "uvx"]
377381
# Add "uvw" binary for Windows targets

0 commit comments

Comments
 (0)