novoda / download-manager

A library that handles long-running downloads, handling the network interactions and retrying downloads automatically after failures
Apache License 2.0
483 stars 63 forks source link

Problem with temporary URL #506

Closed lkaminskivim closed 5 years ago

lkaminskivim commented 5 years ago

Hi,

Currently I use temporary urls for download. When url expires I receive code 403, but from download manager I get 'WAITING_FOR_NETWORK', like when internet is off.

After some debugging I noticed that in DownloadBatch.shouldAbortAfterGettingTotalBatchSize totalBatchSizeBytes is 0, which is then considered network error.

lkaminskivim commented 5 years ago

duplicated