pypi-server icon indicating copy to clipboard operation
pypi-server copied to clipboard

Error while uploading using twine

Open unnikrishnan-anil opened this issue 4 years ago • 6 comments

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

unnikrishnan-anil avatar Apr 26 '20 03:04 unnikrishnan-anil

Just increate max body size

mosquito avatar Apr 28 '20 12:04 mosquito

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.

unnikrishnan-anil avatar Apr 28 '20 16:04 unnikrishnan-anil

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

mosquito avatar Apr 28 '20 16:04 mosquito

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 avatar Apr 28 '20 17:04 unnikrishnan-anil

Any updates @mosquito ?

unnikrishnan-anil avatar May 07 '20 07:05 unnikrishnan-anil

@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.

evansano avatar Nov 11 '20 17:11 evansano