Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpful error message when failing to upload to an inaccurate PyPI URL #499

Closed
brainwane opened this issue Oct 3, 2019 · 0 comments · Fixed by #509
Closed

Helpful error message when failing to upload to an inaccurate PyPI URL #499

brainwane opened this issue Oct 3, 2019 · 0 comments · Fixed by #509

Comments

@brainwane
Copy link
Contributor

#289 (comment) and #381 make me think of this enhancement idea:

If Twine fails to upload with an "HTTPError: 405 Client Error: Method Not Allowed for url", and the URL has "pypi.org/" in it (thus including both pypi.org and test.pypi.org), we'd give the user a helpful error message saying: "You probably want one of these two URLs ([link] and [link])" and mentioning https://warehouse.readthedocs.io/api-reference/legacy/#upload-api .

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

Successfully merging a pull request may close this issue.

1 participant