Closed hamza0786 closed 1 month ago
Could you tell what is the failure reason, it will be coming in downloadModel.failureReason, or you can check by putting breakpoint
ok wait
Hi! this is the logcat when download failed:
2024-08-06 20:16:43.421 6930-6958 WM-Processor com.khush.sample I Moving WorkSpec (4d580483-8300-4014-9ba3-d17a8b87073a) to the foreground 2024-08-06 20:16:46.477 6930-6966 WM-Processor com.khush.sample I Moving WorkSpec (4d580483-8300-4014-9ba3-d17a8b87073a) to the foreground 2024-08-06 20:16:47.304 6930-6958 WM-WorkerWrapper com.khush.sample I Worker result FAILURE for Work [ id=4d580483-8300-4014-9ba3-d17a8b87073a, tags={ com.ketch.internal.worker.DownloadWorker, downloads } ] 2024-08-06 20:16:47.323 6930-6930 WM-SystemFgDispatcher com.khush.sample I Stopping foreground service
this is the video link i downloading:
Let me check and get back.
ok
any fix brother?
i got this in logcat for failure reason:
Failure reason: stream was reset: PROTOCOL_ERROR
It seems like an open issue happening with HTTP2 https://github.com/square/okhttp/issues/3955
I need to check, give me some time.
One workaround will be to use HTTP1.1
In case you have forked the library, inside RetrofitInstance.kt class add protocol field like this
OkHttpClient.Builder().protocols(listOf(Protocol.HTTP_1_1)).build()
Protocol.HTTP_1_2 is giving unresolved refrence so i have replaced it with HTTP_1_1 now its downloading fine. thanks!
I am keeping it open for now
ok!
Hi app is not downloading some videos every time the download started and then after 20% downlading it stops and then the download failed.this is not happening with all downloads.only some videos it start the download and then in middle it failed. see the video below:
https://github.com/user-attachments/assets/79d2dc91-f97c-4da9-9650-0a680ea2408b