MalloyDelacroix / DownloaderForReddit

The Downloader for Reddit is a GUI application with some advanced features to extract and download submitted content from reddit.
GNU General Public License v3.0
496 stars 47 forks source link

Failed to join multi-download part into complete file #321

Open T-prog3 opened 1 year ago

T-prog3 commented 1 year ago

Describe the bug Some video files fails to merge and result in a single 1mb corrupt file.

This is the only error that is given. `

"levelname": "ERROR",
"asctime": "11/05/2022 11:25:20 PM",
"filename": "multipart_downloader.py",
"module": "multipart_downloader",
"name": "DownloaderForReddit.core.download.multipart_downloader",
"funcName": "download",
"lineno": 58,
"message": "Failed to join multi-download part into complete file",
"exc_info": "Traceback (most recent call last):\n  File \"DownloaderForReddit\\core\\download\\multipart_downloader.py\", line 54, in download\nFileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/Admin/Desktop/RedditDownloads/2022-08-30 - ynbbg0.part13'",
"chunk_path": "C:/Users/Admin/Desktop/RedditDownloads/2022-08-30 - ynbbg0.part13"

`

MalloyDelacroix commented 1 year ago

Is this happening repeatedly or just one / very few times?

Judging by that error message, it looks like part 13 of whatever file didn't download correctly and so the parts couldn't be merged. If this is just a one-time occurrence, there was likely an error on the server side while trying to download that part. If it is frequent, It's most likely on our end.

T-prog3 commented 1 year ago

I've only seen this in about 10 different cases as of now.

Yes it thinks the file is existing without verification and then you get an error when not found. But it doesn't say what source the file is from so i can't manually fix it. So all i can do is remove the corrupt file and forget about it.