You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
uv publish --check-url fails for missing package 404 #19459
I'm not 100% sure we should upload the package in that case -- it's not correct for a simple index to respond with text/plain (per the specs, it MUST respond with one of an HTML or JSON content type that we understand, including one of the vnd.pypi ones).
Could you share an MRE for this? It would be helpful to have a public link to a GitLab index that demonstrates this content type.
(Note that this isn't related to 404 handling; the actual error here is in our content-type expectation.)
Activity
woodruffw commentedon May 18, 2026
I'm not 100% sure we should upload the package in that case -- it's not correct for a simple index to respond with
text/plain(per the specs, it MUST respond with one of an HTML or JSON content type that we understand, including one of thevnd.pypiones).Could you share an MRE for this? It would be helpful to have a public link to a GitLab index that demonstrates this content type.
(Note that this isn't related to 404 handling; the actual error here is in our content-type expectation.)
peter-facko commentedon May 18, 2026
@woodruffw, thank you for the response. You're right, I didn't read the error carefully.
Actually I noticed that GitLab redirects to PyPI, so the example is just
woodruffw commentedon May 18, 2026
That doesn't reproduce:
woodruffw commentedon May 18, 2026
Oh hmm, it reproduces for the 404 case:
I'm surprised we don't handle the 404 case specially. I'll defer to @konstin for that 🙂
Support redirects in `--check-url` (#19594)