Comments (4)
Since you mentioned a slow Android 12 device I think it's likely that the OS cancels the task because it is trying to manage performance. If you Google around you'll see lots of examples of that, and there is nothing you can do except indeed chunking the upload.
from background_downloader.
Two possible reasons:
- Upload is canceled by server (because it takes too long or is too slow)
- Upload is canceled by Android OS (especially on less-performant devices the Android OEM often implements aggressive background task management to improve perceived performance, and this includes unceremoniously canceling background tasks)
The second is most likely given how you describe the problem, and unfortunately there is nothing you can do about that. There is nothing in the logs that stands out.
from background_downloader.
1. Upload is canceled by server (because it takes too long or is too slow)
Don't think so. The DAV logs show errors mentioning incomplete downloads (i.e. expected x bytes, received y bytes
), which probably means the client is terminating the connection too soon.
Does this mean that big file on slow devices are generally impossible to upload? Could this be solved by switching to the MemoryQueue
?
If nothing can be done about this then we might need to think about chunking these kinds of slow uploads.
from background_downloader.
Alright, I'll look into that. Thanks for the info!
from background_downloader.
Related Issues (20)
- Error information for failed downloads HOT 2
- Pleas help me ,Compilation failed, unable to get kotlin-serialization-compiler-plugin-embeddable-1.7.10.pom
- Execution failed for task ':background_downloader:compileDebugKotlin' HOT 1
- How i can resolve this issue? HOT 2
- Downloader works on Android but not on IOs (simulator) and TestFlight HOT 8
- Method to get TaskUpdate of a Task HOT 4
- Single Download Progress Notification for Multiple URLs HOT 8
- [Android] Gradle MergeFailureException with compileSdkVersion 34 and Foreground Service HOT 3
- Start download from the beginning HOT 1
- Download notification do not show the progress HOT 1
- [Android] notification icon HOT 3
- Large attachment uploading takes a while HOT 2
- Build failure with `background_downloader` due to missing Kotlin plugin HOT 3
- Monthly issue metrics report for opened issues and prs
- Monthly issue metrics report for closed issues and prs
- Receive status update in background HOT 6
- Lack of Docs for `downloadBatch` HOT 1
- Duplicate Task when uploading an image HOT 6
- Could not find org.jetbrains.kotlin:kotlin-serialization-compiler-plugin-embeddable:1.7.10. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from background_downloader.