uv/crates/uv-distribution/src
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
..
index Support locking relative paths (#4205) 2024-06-11 11:58:03 +00:00
metadata Make uv.sources without --preview non-fatal (#4558) 2024-06-26 18:07:00 +00:00
source Disable Clippy's too-many-arguments rule (#4663) 2024-06-30 19:30:38 +00:00
archive.rs Store IDs rather than paths in the cache (#2985) 2024-04-10 21:07:51 -04:00
distribution_database.rs Read content length from response rather than request (#4488) 2024-06-24 15:58:21 -04:00
download.rs Add hash-checking support to install and sync (#2945) 2024-04-10 19:09:03 +00:00
error.rs Show when we retried requests (#4725) 2024-07-02 19:04:11 +02:00
lib.rs Sync all packages in a virtual workspace (#4636) 2024-06-29 12:43:59 -04:00
locks.rs Remove unnecessary uses of DashMap and Arc (#3413) 2024-05-06 22:30:43 -04:00
pyproject.rs Enable projects to opt-out of workspace management (#4565) 2024-07-01 16:17:43 -04:00
pyproject_mut.rs Allow uv add to specify optional dependency groups (#4607) 2024-06-28 01:24:21 +00:00
reporter.rs Concurrent progress bars (#3252) 2024-05-27 01:21:07 +00:00
workspace.rs Enable projects to opt-out of workspace management (#4565) 2024-07-01 16:17:43 -04:00