-
Notifications
You must be signed in to change notification settings - Fork 23
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
Error "Failed writing body" #12
Comments
Thanks for reporting this. The RSS feed has a bizarre length attribute for the enclosure (probably an overflow when it was generated), and this confuses castget.
This will be fixed in the next minor version. |
Cool, looking forward for the next minor version :-) |
Any plans when this is going to be fixed? This bug is really annoying. |
Looking at this again I don't think the overflow in the length attribute is the issue. These all download without problem for me with or without the fix. Are you sure you're not simply running out of disk space? These are large files... You may also be hitting a filesystem limit. The files we're talking about here will all be larger than 2GB. |
Disc space is not an issue. Filesystem used is ext4 and I'm able to download the files manually using wget, but it doesn't work castget. |
Can you test castget with the two previous patches applied? The last one extends the error message so that it includes the error message from the failed libc call. |
Output from castget with the two patches applied:
Additionally, I figured out that this issue only happens on a machine with ARM architecture (Raspberry PI), the same version on a X86 machine works perfectly well! Any ideas? |
This issue seems to be related to a 2 gb limit: The (incomplete) file written has a size of exactly 2048 mb. A probably related question on stackoverflow: http://stackoverflow.com/questions/730709/2gb-limit-on-file-size-when-using-fwrite-in-c |
Great, thanks for testing this! I'll have to experiment a bit with If you want a quick fix, it may work to recompile castget (with or without the above patches) like this:
(remember a |
With some feeds (e.g. http://www.srf.ch/feed/podcast/hd/3b016ffc-afa2-466d-a694-c48b7ffe1783.xml), I get an error of the form "Failed writing body" when downloading the enclosures:
The text was updated successfully, but these errors were encountered: