Nikky
07/05/2019, 5:43 PM18:36:28.155 [pool-2] ERROR voodoo.util.Downloader - Download Failed
com.github.kittinunf.fuel.core.HttpException: HTTP Exception 404 Not Found
at com.github.kittinunf.fuel.core.requests.SuspendableRequest.prepareResponse(SuspendableRequest.kt:32)
at com.github.kittinunf.fuel.core.requests.SuspendableRequest.awaitResult(SuspendableRequest.kt:43)
at com.github.kittinunf.fuel.core.DeserializableKt.awaitResponseResult(Deserializable.kt:250)
at voodoo.util.DownloadExtensionKt$download$$inlined$awaitByteArrayResponseResult$1.invokeSuspend(Coroutines.kt:68)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
it crashes in awaitResponseResult ... but shouldn't it wrap that in a error and pass it as Result.Failure ?
this is the corresponding code:
https://github.com/DaemonicLabs/Voodoo/blob/8623e1919bab36c820255d6e133530becc070391/util/src/main/kotlin/voodoo/util/DownloadExtension.kt#L46-L53
its a bit ugly and still got some fix for a earlier fuel version in i think