harbor run -t swe-rebench/pypa__twine-1309harbor download swe-rebench/pypa__twine-1309Error during upload. ValueError: 499 is not a valid HTTPStatus
499 ValueError
Linux
No response
Python 3.12 (this is GHA hosted runner)
https://github.com/karellen/karellen-llvm/actions/runs/23277186082/job/67682577805#step:3:21
pip install --no-input --user --break-system-packages twine
twine --version
twine version 6.2.0 (keyring: 25.7.0, packaging: 26.0, requests: 2.32.5,
requests-toolbelt: 1.0.0, urllib3: 2.6.3, id: 1.6.1)
pypi.org
WARNING Error during upload. Retry with the --verbose option for more details.
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/twine/__main__.py", line 33, in main
error = cli.dispatch(sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/twine/cli.py", line 139, in dispatch
return main(args.args)
^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/twine/commands/upload.py", line 253, in main
return upload(upload_settings, parsed_args.dists)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/twine/commands/upload.py", line 216, in upload
utils.check_status_code(resp, upload_settings.verbose)
File "/home/runner/.local/lib/python3.12/site-packages/twine/utils.py", line 248, in check_status_code
raise err
File "/home/runner/.local/lib/python3.12/site-packages/twine/utils.py", line 240, in check_status_code
response.raise_for_status()
File "/home/runner/.local/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 499 Client Error: status code 499 for url: https://upload.pypi.org/legacy/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/.local/bin/twine", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/twine/__main__.py", line 40, in main
status_phrase = http.HTTPStatus(status_code).phrase
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/enum.py", line 757, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/enum.py", line 1171, in __new__
raise ve_exc
ValueError: 499 is not a valid HTTPStatus
https://github.com/karellen/karellen-llvm/actions/runs/23277186082/job/67682577805#step:6:2129
This is GHA Workflow failing, the full reproducer is here: https://github.com/karellen/karellen-llvm/actions/runs/23277186082/workflow#L58
Artifacts are publicly published and are contained in the release.
This is the artifact that is failing: https://github.com/karellen/karellen-llvm/releases/download/v22.1.1.post17/karellen_llvm_core_debug-22.1.1.post17-py3-none-manylinux_2_28_x86_64.whl
Other artifacts continue to succeed.
.pypirc filethere isn't one, it's CI host.
No response