Open maxfirman opened 3 months ago
Can you try removing the [pip]
header from your uv.toml
?
Settings under [pip]
only apply to uv pip
; settings at the top-level apply to everything (uv sync
, uv lock
, and uv pip
et al).
Brilliant, that worked! Thanks
@charliermarsh why do we fail with this weird error? because the proxy returns a weird response?
(@maxfirman if you can get more details about what the response from the proxy is that'd be helpful for improving the error message for other users, uv will say more about the requests with RUST_LOG=trace uv add --verbose ...
)
uv_add_failure.log @zanieb log file attached
What kind of response is returned when you GET https://files.pythonhosted.org/packages/61/79/efc316760a906763de872d7328c9bf8c5af28708a35fdae57fbb4ee005f7/requests-1.2.3.tar.gz
?
curl_pythonhosted.log @zanieb see attached log. The request goes via our proxy and gets redirected to a our Artifactory which ultimately returns a 404. This looks likely to be a proxy misconfiguration on our end. It would definitely be better to have uv fail immediately and surface the 404 error.
I'm running into some problems trying to use
uv add
anduv lock
commands on a machine running behind a corporate proxy.I have configured internal pypi mirrors in my
~/.config/uv/uv.toml
file:I then run through the following "hello world" example and get some errors along the way:
The interesting thing is that the
uv pip compile pyproject.toml
command succeeds, whereas theuv add
anduv lock
commands fail.If I subsequently delete the
~/.config/uv/uv.toml
file, then theuv pip compile pyproject.toml
command fails with the same error:This would seem to imply that the
uv add
anduv lock
commands are not respecting theindex-url
configuration.