mosquito / pypi-server

Tornado based server like pypi.python.org. With caching from pypi.
MIT License
120 stars 38 forks source link

value too long for type character #33

Closed trondhindenes closed 5 years ago

trondhindenes commented 6 years ago

I'm getting this error in pypi-server on some uploads:

File "/usr/lib/python2.7/site-packages/peewee.py", line 3830, in execute_sql
        cursor.execute(sql, params or ())
    DataError: value too long for type character varying(25)

This happens when uploading using twine:

creating build/bdist.linux-x86_64/wheel/rikstvutilsconfighelper-0.3.19_support_custom_secr0.dist-info/WHEEL
Uploading distributions to https://pypi.system.rikstv.no/pypi
Uploading rikstvutilsconfighelper-0.3.19_support_custom_secr0-py2-none-any.whl

  0%|          | 0.00/6.39k [00:00<?, ?B/s]
100%|##########| 6.39k/6.39k [00:00<00:00, 39.9kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 1 of 5
Uploading rikstvutilsconfighelper-0.3.19_support_custom_secr0-py2-none-any.whl
sam-writer commented 4 years ago

@trondhindenes So you got this to work with Twine? Any tips?

trondhindenes commented 4 years ago

nah, we switched to Nexus OSS long ago.

sam-writer commented 4 years ago

For anyone who finds this issue looking for how to make this work with Twine: I added to the README some config files. With them, this project works fine with Twine.