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

Internal Server Error missing info #872

Open
phdsbr opened this issue Feb 10, 2022 · 2 comments
Open

Internal Server Error missing info #872

phdsbr opened this issue Feb 10, 2022 · 2 comments

Comments

@phdsbr
Copy link

phdsbr commented Feb 10, 2022

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

  1. 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)

  2. 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)

  1. 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:

  • The package's PKG-INFO file
Metadata-Version: 2.1
Name: netops
Version: 0.1.33
Summary: Utilities for NetGitOps Python use cases.
Home-page: https://git.rnp.br/pop-rj/netops
Author: Pedro Diniz
Author-email: pedro.diniz@pop-rj.rnp.br
License: MIT
Description: 
        # NetOps
        
        NetDevOps utility packages for network automation with Python and GitOps approach.
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8.0
Description-Content-Type: text/markdown
  • A redacted version of your .pypirc file (REMOVE ALL USERNAMES & PASSWORDS BEFORE UPLOADING)
    File: ~/.pypirc
[distutils]
index-servers=pypi

[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:
<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>
    
  </body>
</html>

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:
<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>
    
  </body>
</html>

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 using twine.

@sigmavirus24
Copy link
Member

sigmavirus24 commented Feb 11, 2022

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
Copy link
Contributor

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

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

No branches or pull requests

3 participants