-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tornado Content-Length too long uploading plugin. #957
Comments
Changing the non uploads maxSize in src\octoprint\settings.py fixes it. |
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). |
Yes, 106. I guess I will clone devel again so I can create diffs since I am back here hacking on it again. |
Should be fixed by the above commit, can someone please verify? |
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? |
more than 100k would be great ;) |
My git foo is so weak. I can not seem to get this code to come down. Help? |
You are on the devel branch? And trying to pull from my repo, not maybe your fork or something like this? |
|
http://gnet.homelinux.com/git/OctoPrint.git. Fix is confirmed for my scenario, thank you very much. |
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? |
@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.
The text was updated successfully, but these errors were encountered: