-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Prevent downloader from receiving unsupported gzip encoding #224
base: main
Are you sure you want to change the base?
Conversation
My guess is that it was not a gzip compression that made the problem. Do you know what kind of file it was? We would drop support for gzip and zlib using this fix. I will think about it. I guess your case is currently a very rare case, so we have more time to do this properly. |
I was using the latest Docker version. The file it wanted to download was a snippet of MATLAB code (text, basically,
I tried to inspect the requests that get sent via Burp Suite, but for some reason I can't get the request for that file to show up, all I'm seeing is the course listing requests (I tried setting This is the complete error message from verbose mode:
|
Very interesting. This is a lot more informative. Sadly aiohttp does not print the error of the zlib library. They just print a generic error. |
I tested it, zlib should always be installed with python, since python depends on it. Can you send me the correct .m file (via mail or upload it here), I want to upload it on my moodle and test if I can reproduce this. Also send me your moodle version if you know it (it should be printed in the verbose log). Maybe it depends on the version. |
I've had downloads in a mooodle course fail due to the server defaulting to gzip for some files, which doesn't seem to be supported my Moodle-DL. This makes the downloader explicitly request "identity" encoding, which fixed the problem for me.