Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTornado Content-Length too long uploading plugin. #957
Comments
This comment has been minimized.
This comment has been minimized.
|
Changing the non uploads maxSize in src\octoprint\settings.py fixes it. |
This comment has been minimized.
This comment has been minimized.
|
Is that on line 106? I've had that issue before with some of the other plugins with upload capability and I think this might fix that for me as well. Hope you like my hacked together plugin (STL Viewer). |
This comment has been minimized.
This comment has been minimized.
|
Yes, 106. I guess I will clone devel again so I can create diffs since I am back here hacking on it again. |
This comment has been minimized.
This comment has been minimized.
|
Should be fixed by the above commit, can someone please verify? |
This comment has been minimized.
This comment has been minimized.
|
You beat me to the patch. My way was brutal anyway. So you want I should test a 51 MB plugin now;) Or just one more than 100k? |
This comment has been minimized.
This comment has been minimized.
|
more than 100k would be great ;) |
This comment has been minimized.
This comment has been minimized.
|
My git foo is so weak. I can not seem to get this code to come down. Help? |
This comment has been minimized.
This comment has been minimized.
|
You are on the devel branch? And trying to pull from my repo, not maybe your fork or something like this? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
http://gnet.homelinux.com/git/OctoPrint.git. Fix is confirmed for my scenario, thank you very much. |
This comment has been minimized.
This comment has been minimized.
|
That fixes it for the plugin manager, but doesn't for other plugins. Should they implement the settings change the same way within their plugin? |
This comment has been minimized.
This comment has been minimized.
|
@jneilliii yes, that's why there is a hook for that. having the body size limited for everything but whitelisted end points is to protect the server from malicious requests (large bodies can be especially problematic on something like a pi). OctoPrint can't possibly know about endpoints provided by plugins that should be whitelisted, hence that hook for them to tell it about them. |
Uploading a plugin from the desktop fails with a "tornado.general - INFO - Malformed HTTP message from 127.0.0.1: Content-Length too long"
1.3.0-dev-7-g5f0c89c on Pi2 from Octopi image using file Octoprint-STLViewer-master.zip (116,759 bytes) from the repo.
I have read the FAQ and I love cookies as well.