capacitor-updater icon indicating copy to clipboard operation
capacitor-updater copied to clipboard

No clear error message when download fails

Open snimavat opened this issue 2 years ago • 5 comments

When zip download fails for some reason, the plugin just outputs the error "Download failed" Without any clear message / error on what went wrong or why download has failed. Not helpful for debugging / investigating the issue

snimavat avatar Mar 29 '22 16:03 snimavat

Make sure your zip file url is HTTPS

Kaizodo avatar Apr 02 '22 05:04 Kaizodo

Thanks for the feedback, it's added in the roadmap! Screenshot 2022-04-05 at 12 30 02

riderx avatar Apr 05 '22 11:04 riderx

Haven't used the plugin for a while because it doesn't work optimally under iOS. Today I wanted to start a new insurance and I also get the message "download failed" in Android, but unfortunately there is no exact description. The direct download of the file works, but an error message appears via the CapacitorUpdater.download function.

PIXPOINT avatar Jul 04 '22 10:07 PIXPOINT

First of all. Nice plugin! Thanks for this!.

We have exactly the same issue. In the beginning it worked but sometimes the message "Capacitor-updater: download unzip error" comes up and i don't know what went wrong. What failed? The download or the unzipping?

I saw that you use SSZipArchive (https://github.com/Cap-go/capacitor-updater/blob/main/ios/Plugin/CapacitorUpdater.swift#L134). There are some method overloads where you could get error information. I guess this would help quite a lot.

doublechecker avatar Jul 08 '22 08:07 doublechecker

Hey guys it has been updated in v4, can you upgrade and check. ?

riderx avatar Oct 05 '22 23:10 riderx