sunnyark / civitai-shortcut

140 stars 13 forks source link

Model file broken after being "succesfully downloaded" #88

Closed hakaserver closed 5 months ago

hakaserver commented 10 months ago

Some times, downloading a model through Civitai Shortcut fails. Even though the log says it was "successfully downloaded", the download process clearly finishes too quickly and the file fails to download.

The steps I usually take when downloading a model:

Paste the link of a model page in the register model tab. Example of model that fails to download here. Update classification information. Select folder location for download. Click Download button. The download finishes too quickly, but message says " successfully downloaded." Check downloaded file size to determine it only has ~100kb and failed to download.

Inspecting the file, it shows only 104kb independently of the original file size. Pressing the download button again repeats the same occurrence and an additional ~100kb is added to the file each time it is downloaded again. If the file is deleted before trying again, the download keeps failing. Even if this happens, some models do not fail to download, while others keep failing. It is not 100% clear if this is model dependant, but models that fail to download seems to keep failing, while others never do.

k0ala991 commented 9 months ago

I've experience this before as well on several models, and was able to reproduce the problem using the model linked above using the latest version.

jim60105 commented 7 months ago

Fixed in https://github.com/jim60105/civitai-shortcut

Not sure if I should submit a PR, since I just pick the code from cratom4 and add the UI, and I saw the notice at top of the readme.

jim60105 commented 7 months ago

Please be aware that you have to fill the API key in the settings. image