gh-action-pypi-publish icon indicating copy to clipboard operation
gh-action-pypi-publish copied to clipboard

Test.pypi.org returning 500

Open tzulberti-jampp opened this issue 5 years ago • 5 comments

I am not sure if this belongs here, but I am having an issue when using this Github Action.

This is the link to the github run that failed: https://github.com/jampp/migratron/pull/25/checks?check_run_id=456554120

and the content is:

Uploading distributions to https://test.pypi.org/legacy/
Uploading migratron-1.1.0-py3-none-any.whl

  0%|          | 0.00/30.5k [00:00<?, ?B/s]
100%|██████████| 30.5k/30.5k [00:00<00:00, 135kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 1 of 5
Uploading migratron-1.1.0-py3-none-any.whl

  0%|          | 0.00/30.5k [00:00<?, ?B/s]
100%|██████████| 30.5k/30.5k [00:00<00:00, 177kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 2 of 5
Uploading migratron-1.1.0-py3-none-any.whl

  0%|          | 0.00/30.5k [00:00<?, ?B/s]
100%|██████████| 30.5k/30.5k [00:00<00:00, 187kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 3 of 5
Uploading migratron-1.1.0-py3-none-any.whl

  0%|          | 0.00/30.5k [00:00<?, ?B/s]
100%|██████████| 30.5k/30.5k [00:00<00:00, 276kB/s]
  Post actions/checkout@v2

If I run:

TWINE_USERNAME="__token__" \
TWINE_PASSWORD="pypi-foobar" \
TWINE_REPOSITORY_URL="https://test.pypi.org/legacy/" \
twine upload dist/*

with a valid TWINE_PASSWORD that works ok. If I use an invalid password ir returns a 403 and not a 500

tzulberti-jampp avatar Feb 19 '20 23:02 tzulberti-jampp

Let's ask @ewdurbin to check. Because HTTP 500 is a server error. But in general it seems to belong to the warehouse repo.

webknjaz avatar Feb 22 '20 08:02 webknjaz

This may be related to https://github.com/pypa/warehouse/issues/7298

ewdurbin avatar Feb 22 '20 12:02 ewdurbin

@ewdurbin do you want to transfer this issue there? Should I try stripping off the newlines here?

webknjaz avatar Feb 22 '20 14:02 webknjaz

https://github.com/pypa/warehouse/issues/7298 has been closed (by https://github.com/pypa/warehouse/pull/7424).

OK to close this one?

hugovk avatar Mar 01 '20 19:03 hugovk

Not sure, maybe we should do a better job stripping the input.

webknjaz avatar Mar 07 '20 10:03 webknjaz