pypa / twine

Utilities for interacting with PyPI
https://twine.readthedocs.io/
Apache License 2.0
1.61k stars 308 forks source link

Internal Server Error missing info #872

Open phdsbr opened 2 years ago

phdsbr commented 2 years ago

Environment

1) Your operating system: NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)"

2) Version of python you are running:

python --version

Python 3.8.10

3) How did you install twine? Did you use your operating system's package manager or pip or something else? OS package managera (apt-get install twine)

4) Version of twine you have installed (include complete output of):

twine --version

twine version 3.1.1 (pkginfo: 1.4.2, requests: 2.22.0, setuptools: 45.2.0, requests-toolbelt: 0.8.0, tqdm: 4.30.0)

5) Which package repository are you targeting? Both test (https://test.pypi.org/legacy/) and official (https://upload.pypi.org/legacy/) have the same issue.

If you're having issues uploading a specific package, you must include a copy of the following:

[pypi] repository = https://test.pypi.org/legacy/ username: ** password: **


## The Issue
Please describe the issue that you are experiencing.
**Attempting to add a new release with twine or setuptools results in a unhelpful Received "500: Internal Server Error".**

**After changing an IF statement in a module and trying to upload new version to TEST or OFFICIAL repo, I get an 500 error with no info about what is the error cause.** 

**Uploading to https://test.pypi.org/legacy/**

$ twine upload --verbose dist/* Uploading distributions to https://test.pypi.org/legacy/ Uploading netops-0.1.33-py2.py3-none-any.whl 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 37.0kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 1 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 34.5kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 2 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 117kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 3 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 128kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 4 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 116kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 5 of 5 Content received from server:

Internal Server Error

Internal Server Error

HTTPError: 500 Server Error: Internal Server Error for url: https://test.pypi.org/legacy/


**Uploading to https://upload.pypi.org/legacy/**

$ twine upload --verbose dist/* 1 ↵ Uploading distributions to https://upload.pypi.org/legacy/ Uploading netops-0.1.33-py2.py3-none-any.whl 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:05<00:00, 5.46kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 1 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 155kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 2 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 158kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 3 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 160kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 4 of 5 Uploading netops-0.1.33-py2.py3-none-any.whl 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████| 31.3k/31.3k [00:00<00:00, 121kB/s] Received "500: Internal Server Error" Package upload appears to have failed. Retry 5 of 5 Content received from server:

Internal Server Error

Internal Server Error

HTTPError: 500 Server Error: Internal Server Error for url: https://upload.pypi.org/legacy/



## Steps to Reproduce
If the issue is predictable and consistently reproducible, please list the steps here.
**Upload [netops-0.1.33.tar.gz](https://github.com/pypa/twine/files/8042438/netops-0.1.33.tar.gz) using twine.**
sigmavirus24 commented 2 years ago

I believe @bhrutledge recently released ~3.2.0~ 3.8.0 (edited to correct) with improvements to help with just such an error. Can you upgrade to that and retry?

bhrutledge commented 2 years ago

I think using --verbose with Twine 3.8.0 would give the most information.

Changelog: https://twine.readthedocs.io/en/latest/changelog.html#twine-3-8-0-2022-02-02