Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requested range not satisfiable #135

Open
azizmalik406 opened this issue Aug 6, 2020 · 2 comments
Open

requested range not satisfiable #135

azizmalik406 opened this issue Aug 6, 2020 · 2 comments

Comments

@azizmalik406
Copy link

am using this library to download videos from recyclerview ,whenever i download any video it download it but when try to download other from recycler than it throw error requested range not satisfiable

@vad-zuev
Copy link

I can confirm I'm also getting this error for random files. Never met a HTTP 416 before... weird stuff. Anyone any idea why it suddenly started happening? It seems this project has not been updated for years and worked just fine.

@imandaliya
Copy link

this issue happened because of file is already exist in destination path, to solve issue first delete existed file

val outputFile = File(filesDir, filename).apply { if(exists()) delete() }
val destinationUri = Uri.fromFile(outputFile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants