-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
As #19538 ?
Timeout error 499 on upload via twine:
bash-5.3$ twine upload dist/coalispr-0.9.7.tar.gz --repository coalispr --verbose
INFO Using configuration from /home/rob/.pypirc
Uploading distributions to https://upload.pypi.org/legacy/
INFO dist/coalispr-0.9.7.tar.gz (66.9 MB)
INFO username set by command options
INFO password set from config file
INFO username: token
INFO password:
Uploading coalispr-0.9.7.tar.gz
95% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╺━ 66.8/70.2 MB • 00:04 • 1.0 MB/s
INFO Response from https://upload.pypi.org/legacy/:
499 status code 499
INFO Client Closed Request
Describe the bug
After successful upload of the wheel version, the upload of the 66.9 MB source archive halts close to completion. Multiple attempts to upload the source archive fails despite 1.0-1.2Mb/s transfer rates.
Expected behavior
Successful upload like in Jan. for version 0.9.6.
To Reproduce
bash-5.3$ twine upload dist/coalispr-0.9.7.tar.gz --repository coalispr --verbose
My Platform
Slackware linux, 64-bit, current, Python-3.12
twine 6.2.0 running from dedicated virtual environment.
Uploading without vpn makes no difference.
Recreating the virtual environment and pip install twine makes no difference.
Additional context
Traceback (most recent call last):
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/__main__.py", line 33, in main
error = cli.dispatch(sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/cli.py", line 139, in dispatch
return main(args.args)
^^^^^^^^^^^^^^^
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/commands/upload.py", line 253, in main
return upload(upload_settings, parsed_args.dists)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/commands/upload.py", line 216, in upload
utils.check_status_code(resp, upload_settings.verbose)
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/utils.py", line 248, in check_status_code
raise err
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/utils.py", line 240, in check_status_code
response.raise_for_status()
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/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/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/bin/twine", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/working/PROGRAMMING/PYTHON/COALISPR/coalispr/upload_twine_env/lib64/python3.12/site-packages/twine/__main__.py", line 40, in main
status_phrase = http.HTTPStatus(status_code).phrase
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/enum.py", line 751, in __call__
return cls.__new__(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/enum.py", line 1170, in __new__
raise ve_exc
ValueError: 499 is not a valid HTTPStatus