Skip to content

uv publish --check-url fails for missing package 404 #19459

@peter-facko

Description

@peter-facko

Summary

uv publish --check-url fails with

error: Failed to query check URL
  Caused by: Unsupported `Content-Type` "text/plain" for https://gitlab.example.org/api/v4/projects/1234/packages/pypi/simple/example-package/. Expected JSON or HTML.

in GitLab when the package doesn't exist. It should just upload the package in that case and not fail.

Platform

Linux 7.0.5-arch1-1 x86_64 GNU/Linux

Version

uv 0.11.14 (3fdfdc7 2026-05-12 x86_64-unknown-linux-gnu)

Python version

Python 3.13.12

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-mreNeeds more information for reproduction, see #9452

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions