Skip to content

uv should be retrying on transient error of 429 #6029

Open
@chrisirhc

Description

This is on uv 0.2.34.

I'd expect 429 errors to be retried, but it seems to be not being retried, despite being specified in https://github.com/astral-sh/reqwest-middleware/blob/21ceec9a5fd2e8d6f71c3ea2999078fecbd13cbe/reqwest-retry/src/retryable_strategy.rs#L125

Sample trace logs:

           44.515293s   1s  TRACE hyper_util::client::legacy::pool put; add idle connection for ("https", artifacts.uberinternal.com)                                                                          
           44.515313s   1s  DEBUG hyper_util::client::legacy::pool pooling idle connection for ("https", artifacts.uberinternal.com)                                                                           
           44.515350s   1s  DEBUG uv_client::base_client Transient request failure for: …/46/b3/d906c67382b8711d9612a8aff1e685f6b04
d97bd18991e21fabc197660eb/pydantic_core-2.14.4-cp311-cp311-macosx_11_0_arm64.whl#sha256=bccd5af7f05290da715623ec3e71f25d70ddb09da7925a4c2eea883f2610bad2                                                       
error: Failed to download `pydantic-core==2.14.4`
  Caused by: HTTP status client error (429 Too Many Requests) for url (…/46/b3/d906c67382b8711d9612a8aff1e685f6b04d97bd18991e21fabc
197660eb/pydantic_core-2.14.4-cp311-cp311-macosx_11_0_arm64.whl#sha256=bccd5af7f05290da715623ec3e71f25d70ddb09da7925a4c2eea883f2610bad2) 

I'm not seeing the "retrying" logs that were added in 63c84ed .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

needs-mreNeeds more information for reproductionnetworkNetwork connectivity e.g. proxies, DNS, and SSL

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions