mosquito / pypi-server

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

Error while uploading using twine #50

Open unnikrishnan-anil opened 4 years ago

unnikrishnan-anil commented 4 years ago

While uploading, I get the following server error:

[I 200426 03:32:00 http1connection:253] Malformed HTTP message from 192.168.59.13: Content-Length too long

Using the following to upload the whl file python3 -m twine upload --repository-url=http://x.x.x.x:5555/pypi --verbose -u=user -p=pwd pkg.whl

mosquito commented 4 years ago

Just increate max body size

unnikrishnan-anil commented 4 years ago

I’m running it in docker. How do I restart the Docker with the changes? Using the docker compose file isn’t working for me.

mosquito commented 4 years ago

If you look closely at the code in the comment above you will find out the environment variable name

unnikrishnan-anil commented 4 years ago

I set the docker environment variable and started a new docker image. I still have the same issue. I can see the new environment variable in the docker bash.

unnikrishnan-anil commented 4 years ago

Any updates @mosquito ?

evansano commented 3 years ago

@CatsNipYummy , The line that @mosquito linked was for the PyPi.org proxy I beleive. Try setting max_body_size param in server init line and see if that resolves your issue.