uv/crates/uv-toolchain
konsti 4b19319485
Show when we retried requests (#4725)
In #3514 and #2755, users had intermittent network errors, but it was
not always clear whether we had already retried these requests or not.
Building upon https://github.com/TrueLayer/reqwest-middleware/pull/159,
this PR adds the number of retries to the error message, so we can see
at first glance where we're missing retries and where we might need to
change retry settings.

Example error trace:

```
Could not connect, are you offline?
  Caused by: Request failed after 3 retries
  Caused by: error sending request for url (https://pypi.org/simple/uv/)
  Caused by: client error (Connect)
  Caused by: dns error: failed to lookup address information: Name or service not known
  Caused by: failed to lookup address information: Name or service not known
```

This code is ugly since i'm missing a better pattern for attaching
context to reqwest middleware errors in
https://github.com/TrueLayer/reqwest-middleware/pull/159.
2024-07-02 19:04:11 +02:00
..
python Rename uv-interpreter crate to uv-toolchain (#4120) 2024-06-07 13:59:14 -05:00
src Show when we retried requests (#4725) 2024-07-02 19:04:11 +02:00
Cargo.toml Expose toolchain-preference as a CLI and configuration file option (#4424) 2024-06-20 13:42:09 -05:00
download-metadata.json Refactor uv-toolchain::platform to use target-lexicon (#4236) 2024-06-12 09:11:56 -05:00
fetch-download-metadata.py Refactor uv-toolchain::platform to use target-lexicon (#4236) 2024-06-12 09:11:56 -05:00
template-download-metadata.py Add support for toolchain requests by key (#4332) 2024-06-17 13:11:24 -05:00