fluttercommunity / flutter_uploader

background upload plugin for flutter
MIT License
210 stars 140 forks source link

Some tasks don't resume upload after connection recovery #118

Open petroniuchacz opened 3 years ago

petroniuchacz commented 3 years ago

flutter doctor -v [√] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.18363.1082], locale en-US) • Flutter version 1.22.1 at C:\src\flutter1.22.1\flutter • Framework revision f30b7f4db9 (4 weeks ago), 2020-10-08 10:06:30 -0700 • Engine revision 75bef9f6c8 • Dart version 2.10.1 [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Users\DGT638\AppData\Local\Android\sdk • Platform android-29, build-tools 29.0.3 • Java binary at: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe • Java version Java(TM) SE Runtime Environment (build 1.8.0_261-b12) • All Android licenses accepted. [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions). [!] IntelliJ IDEA Community Edition (version 2019.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.4 X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.dev/intellij-setup/#installing-the-plugins [!] VS Code (version 1.42.1) • VS Code at C:\Users\DGT638\AppData\Local\Programs\Microsoft VS Code X Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected device (1 available) • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

Android 11.0, plugin 1.2.0 I'm starting several upload tasks of binary content at he same time, then I'm disabling the network connection. After restoring the connection, some of the tasks don't resume nor do they fail, but stay "frozen".

In this example, I'm starting 4 upload tasks: 86e68f15-94a1-477b-8cab-7ca8f08649d8 107ef792-e15e-452e-8dbf-9e8f479ec732 4b3e6478-7707-4c9f-8b76-8de0524f9931 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb

After I switch the network off and on, only 2 tasks resume: 86e68f15-94a1-477b-8cab-7ca8f08649d8 107ef792-e15e-452e-8dbf-9e8f479ec732


I/flutter ( 4881): taksId: 7f4988c8-5532-41ff-984a-b60f46297b2c | Running
I/FilePickerUtils( 4881): File loaded and cached at:/data/user/0/com.example.siftmobile/cache/file_picker/IMG_20201029_140025.jpg
I/FilePickerDelegate( 4881): [MultiFilePick] File #0 - URI: /document/image:43
I/FilePickerUtils( 4881): Caching file from remote/external URI
I/FilePickerUtils( 4881): File loaded and cached at:/data/user/0/com.example.siftmobile/cache/file_picker/IMG_20201029_140021.jpg
I/FilePickerDelegate( 4881): [MultiFilePick] File #1 - URI: /document/image:42
I/FilePickerUtils( 4881): Caching file from remote/external URI
I/FilePickerUtils( 4881): File loaded and cached at:/data/user/0/com.example.siftmobile/cache/file_picker/IMG_20201029_140016.jpg
I/FilePickerDelegate( 4881): [MultiFilePick] File #2 - URI: /document/image:41
I/FilePickerUtils( 4881): Caching file from remote/external URI
W/System  ( 4881): A resource failed to call close. 
I/chatty  ( 4881): uid=10151(com.example.siftmobile) FinalizerDaemon identical 1 line
W/System  ( 4881): A resource failed to call close. 
I/FilePickerUtils( 4881): File loaded and cached at:/data/user/0/com.example.siftmobile/cache/file_picker/IMG_20201029_140009.jpg
I/FilePickerDelegate( 4881): [MultiFilePick] File #3 - URI: /document/image:40
W/System  ( 4881): A resource failed to call close. 
W/WM-WorkSpec( 4881): Backoff delay duration less than minimum value
W/WM-WorkSpec( 4881): Backoff delay duration less than minimum value
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Enqueued
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Enqueued
D/UploadWorker( 4881): Start uploading for c1a85bcf-9b9f-4f5e-a9b4-ba62b2712f96
W/WM-WorkSpec( 4881): Backoff delay duration less than minimum value
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Enqueued
W/WM-WorkSpec( 4881): Backoff delay duration less than minimum value
I/flutter ( 4881): taksId: 4b3e6478-7707-4c9f-8b76-8de0524f9931 | Enqueued
D/UploadWorker( 4881): Start uploading for 091da34b-d63c-40a4-b7be-629ca0fc9594
I/mple.siftmobil( 4881): Background concurrent copying GC freed 79268(4579KB) AllocSpace objects, 3(236KB) LOS objects, 49% free, 5276KB/10MB, paused 1.992ms total 194.336ms
W/System  ( 4881): A resource failed to call close. 
I/chatty  ( 4881): uid=10151(com.example.siftmobile) FinalizerDaemon identical 2 lines
W/System  ( 4881): A resource failed to call close. 
D/UploadWorker( 4881): Start uploading for 1ce183be-2bec-4fae-8043-b94956cd85ce
I/flutter ( 4881): TASKS:MediaUploadStatus.UPLOADING taskId:86e68f15-94a1-477b-8cab-7ca8f08649d8,MediaUploadStatus.UPLOADING taskId:107ef792-e15e-452e-8dbf-9e8f479ec732,MediaUploadStatus.UPLOADING taskId:4b3e6478-7707-4c9f-8b76-8de0524f9931,MediaUploadStatus.UPLOADING taskId:448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 8192, contentLength: 128189, progress: 6, lastProgress: 0
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 16384, contentLength: 128189, progress: 13, lastProgress: 6
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 24576, contentLength: 128189, progress: 19, lastProgress: 13
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 32768, contentLength: 128189, progress: 26, lastProgress: 19
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 40960, contentLength: 128189, progress: 32, lastProgress: 26
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 49152, contentLength: 128189, progress: 38, lastProgress: 32
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 57344, contentLength: 128189, progress: 45, lastProgress: 38
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 65536, contentLength: 128189, progress: 51, lastProgress: 45
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 73728, contentLength: 128189, progress: 58, lastProgress: 51
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 81920, contentLength: 128189, progress: 64, lastProgress: 58
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 90112, contentLength: 128189, progress: 70, lastProgress: 64
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 98304, contentLength: 128189, progress: 77, lastProgress: 70
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 106496, contentLength: 128189, progress: 83, lastProgress: 77
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 114688, contentLength: 128189, progress: 89, lastProgress: 83
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 122880, contentLength: 128189, progress: 96, lastProgress: 89
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 128189, contentLength: 128189, progress: 100, lastProgress: 96
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 8192, contentLength: 116720, progress: 7, lastProgress: 0
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 16384, contentLength: 116720, progress: 14, lastProgress: 7
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 24576, contentLength: 116720, progress: 21, lastProgress: 14
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 32768, contentLength: 116720, progress: 28, lastProgress: 21
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 40960, contentLength: 116720, progress: 35, lastProgress: 28
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 49152, contentLength: 116720, progress: 42, lastProgress: 35
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 57344, contentLength: 116720, progress: 49, lastProgress: 42
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 65536, contentLength: 116720, progress: 56, lastProgress: 49
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 73728, contentLength: 116720, progress: 63, lastProgress: 56
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 81920, contentLength: 116720, progress: 70, lastProgress: 63
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 90112, contentLength: 116720, progress: 77, lastProgress: 70
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 98304, contentLength: 116720, progress: 84, lastProgress: 77
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 106496, contentLength: 116720, progress: 91, lastProgress: 84
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 114688, contentLength: 116720, progress: 98, lastProgress: 91
D/UploadWorker( 4881): taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, bytesWritten: 116720, contentLength: 116720, progress: 100, lastProgress: 98
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
I/chatty  ( 4881): uid=10151(com.example.siftmobile) 1.ui identical 3 lines
I/flutter ( 4881): taksId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 8192, contentLength: 97267, progress: 8, lastProgress: 0
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 16384, contentLength: 97267, progress: 17, lastProgress: 8
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 24576, contentLength: 97267, progress: 25, lastProgress: 17
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 32768, contentLength: 97267, progress: 34, lastProgress: 25
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 40960, contentLength: 97267, progress: 42, lastProgress: 34
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 49152, contentLength: 97267, progress: 51, lastProgress: 42
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 57344, contentLength: 97267, progress: 59, lastProgress: 51
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 65536, contentLength: 97267, progress: 67, lastProgress: 59
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 73728, contentLength: 97267, progress: 76, lastProgress: 67
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 81920, contentLength: 97267, progress: 84, lastProgress: 76
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 90112, contentLength: 97267, progress: 93, lastProgress: 84
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 97267, contentLength: 97267, progress: 100, lastProgress: 93
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
I/chatty  ( 4881): uid=10151(com.example.siftmobile) 1.ui identical 6 lines
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): UploadWorker - Stopped
W/System.err( 4881): java.net.SocketException: Socket closed
W/System.err( 4881):    at java.net.SocketInputStream.read(SocketInputStream.java:209)
W/System.err( 4881):    at java.net.SocketInputStream.read(SocketInputStream.java:144)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:936)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:900)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:815)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:788)
W/System.err( 4881):    at okio.InputStreamSource.read(Okio.kt:102)
W/System.err( 4881):    at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:159)
W/System.err( 4881):    at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:349)
W/System.err( 4881):    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:222)
W/System.err( 4881):    at okhttp3.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.kt:210)
W/System.err( 4881):    at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:181)
W/System.err( 4881):    at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:105)
W/System.err( 4881):    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:37)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:71)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
I/WM-WorkerWrapper( 4881): Work [ id=86e68f15-94a1-477b-8cab-7ca8f08649d8, tags={ flutter_upload_task, com.bluechilli.flutteruploader.UploadWorker } ] was cancelled
I/WM-WorkerWrapper( 4881): java.util.concurrent.CancellationException: Task was cancelled.
I/WM-WorkerWrapper( 4881):  at androidx.work.impl.utils.futures.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1184)
I/WM-WorkerWrapper( 4881):  at androidx.work.impl.utils.futures.AbstractFuture.getDoneValue(AbstractFuture.java:514)
I/WM-WorkerWrapper( 4881):  at androidx.work.impl.utils.futures.AbstractFuture.get(AbstractFuture.java:475)
I/WM-WorkerWrapper( 4881):  at androidx.work.impl.WorkerWrapper$2.run(WorkerWrapper.java:284)
I/WM-WorkerWrapper( 4881):  at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
I/WM-WorkerWrapper( 4881):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
I/WM-WorkerWrapper( 4881):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
I/WM-WorkerWrapper( 4881):  at java.lang.Thread.run(Thread.java:923)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
W/System.err( 4881):    at okhttp3.RealCall.execute(RealCall.kt:66)
W/System.err( 4881):    at com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:229)
W/System.err( 4881):    at androidx.work.Worker$1.run(Worker.java:85)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err( 4881):    at java.lang.Thread.run(Thread.java:923)
W/System.err( 4881): java.net.SocketException: Software caused connection abort
W/System.err( 4881):    at java.net.SocketInputStream.socketRead0(Native Method)
W/System.err( 4881):    at java.net.SocketInputStream.socketRead(SocketInputStream.java:119)
W/System.err( 4881):    at java.net.SocketInputStream.read(SocketInputStream.java:176)
W/System.err( 4881):    at java.net.SocketInputStream.read(SocketInputStream.java:144)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:936)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:900)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:815)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:788)
W/System.err( 4881):    at okio.InputStreamSource.read(Okio.kt:102)
W/System.err( 4881):    at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:159)
I/flutter ( 4881): WebSocketStatus.Disconnected
W/System.err( 4881):    at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:349)
W/System.err( 4881):    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:222)
W/System.err( 4881):    at okhttp3.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.kt:210)
W/System.err( 4881):    at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:181)
W/System.err( 4881):    at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:105)
W/System.err( 4881):    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:37)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:71)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
W/System.err( 4881):    at okhttp3.RealCall.execute(RealCall.kt:66)
W/System.err( 4881):    at com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:229)
W/System.err( 4881):    at androidx.work.Worker$1.run(Worker.java:85)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err( 4881):    at java.lang.Thread.run(Thread.java:923)
W/System.err( 4881): java.net.SocketException: Software caused connection abort
W/System.err( 4881):    at java.net.SocketInputStream.socketRead0(Native Method)
W/System.err( 4881):    at java.net.SocketInputStream.socketRead(SocketInputStream.java:119)
W/System.err( 4881):    at java.net.SocketInputStream.read(SocketInputStream.java:176)
W/System.err( 4881):    at java.net.SocketInputStream.read(SocketInputStream.java:144)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:936)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:900)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:815)
W/System.err( 4881):    at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:788)
W/System.err( 4881):    at okio.InputStreamSource.read(Okio.kt:102)
W/System.err( 4881):    at okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:159)
W/System.err( 4881):    at okio.RealBufferedSource.indexOf(RealBufferedSource.kt:349)
W/System.err( 4881):    at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:222)
W/System.err( 4881):    at okhttp3.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.kt:210)
W/System.err( 4881):    at okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:181)
W/System.err( 4881):    at okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:105)
W/System.err( 4881):    at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:37)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:71)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
W/System.err( 4881):    at okhttp3.RealCall.execute(RealCall.kt:66)
W/System.err( 4881):    at com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:229)
W/System.err( 4881):    at androidx.work.Worker$1.run(Worker.java:85)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err( 4881):    at java.lang.Thread.run(Thread.java:923)
I/WM-WorkerWrapper( 4881): Worker result FAILURE for Work [ id=448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, tags={ flutter_upload_task, com.bluechilli.flutteruploader.UploadWorker } ]
D/UploadWorker( 4881): Start uploading for ae0f8c8f-59d4-46d8-88fe-6725a1ef176c
W/System.err( 4881): java.net.UnknownHostException: Unable to resolve host "sift-gateway-dev1.s3.eu-central-1.amazonaws.com": No address associated with hostname
W/System.err( 4881):    at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
W/System.err( 4881):    at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
W/System.err( 4881):    at java.net.InetAddress.getAllByName(InetAddress.java:1152)
W/System.err( 4881):    at okhttp3.Dns$Companion$SYSTEM$1.lookup(Dns.kt:48)
W/System.err( 4881):    at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:160)
W/System.err( 4881):    at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:125)
W/System.err( 4881):    at okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71)
W/System.err( 4881):    at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:199)
W/System.err( 4881):    at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:109)
W/System.err( 4881):    at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:77)
W/System.err( 4881):    at okhttp3.internal.connection.Transmitter.newExchange$okhttp(Transmitter.kt:162)
W/System.err( 4881):    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:35)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:71)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
W/System.err( 4881):    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
W/System.err( 4881):    at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
W/System.err( 4881):    at okhttp3.RealCall.execute(RealCall.kt:66)
W/System.err( 4881):    at com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:229)
W/System.err( 4881):    at androidx.work.Worker$1.run(Worker.java:85)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err( 4881):    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err( 4881):    at java.lang.Thread.run(Thread.java:923)
W/System.err( 4881): Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
W/System.err( 4881):    at libcore.io.Linux.android_getaddrinfo(Native Method)
W/System.err( 4881):    at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:73)
W/System.err( 4881):    at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:202)
W/System.err( 4881):    at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:73)
W/System.err( 4881):    at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
W/System.err( 4881):    ... 28 more
D/UploadWorker( 4881): UploadWorker - Stopped
I/WM-WorkerWrapper( 4881): Worker result FAILURE for Work [ id=4b3e6478-7707-4c9f-8b76-8de0524f9931, tags={ flutter_upload_task, com.bluechilli.flutteruploader.UploadWorker } ]
E/flutter ( 4881): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: taskId: 448448dc-6bd1-4ae5-aea7-6dcb1d7b0feb, status:UploadTaskStatus(4), statusCode:500, code:io_error, message:java.net.SocketException: Software caused connection abort}, tag:1ce183be-2bec-4fae-8043-b94956cd85ce
E/flutter ( 4881): java.lang.Thread.run(Thread.java:923)
E/flutter ( 4881): java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/flutter ( 4881): java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/flutter ( 4881): androidx.work.Worker$1.run(Worker.java:85)
E/flutter ( 4881): com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:229)
E/flutter ( 4881): okhttp3.RealCall.execute(RealCall.kt:66)
E/flutter ( 4881): okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:71)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:37)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:82)
E/flutter ( 4881): okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:105)
E/flutter ( 4881): okhttp3.internal.http1.Http1ExchangeCodec.readResponseHeaders(Http1ExchangeCodec.kt:181)
E/flutter ( 4881): okhttp3.internal.http1.Http1ExchangeCodec.readHeaderLine(Http1ExchangeCodec.kt:210)
E/flutter ( 4881): okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.kt:222)
E/flutter ( 4881): okio.RealBufferedSource.indexOf(RealBufferedSource.kt:349)
E/flutter ( 4881): okio.AsyncTimeout$source$1.read(AsyncTimeout.kt:159)
E/flutter ( 4881): okio.InputStreamSource.read(Okio.kt:102)
E/flutter ( 4881): com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:788)
E/flutter ( 4881): com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:815)
E/flutter ( 4881): com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:900)
E/flutter ( 4881): com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:936)
E/flutter ( 4881): java.net.SocketInputStream.read(SocketInputStream.java:144)
E/flutter ( 4881): java.net.SocketInputStream.read(SocketInputStream.java:176)
E/flutter ( 4881): java.net.SocketInputStream.socketRead(SocketInputStream.java:119)
E/flutter ( 4881): java.net.SocketInputStream.socketRead0(Native Method)
E/flutter ( 4881): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: taskId: 4b3e6478-7707-4c9f-8b76-8de0524f9931, status:UploadTaskStatus(4), statusCode:500, code:unknown_host, message:java.net.UnknownHostException: Unable to resolve host "sift-gateway-dev1.s3.eu-central-1.amazonaws.com": No address associated with hostname}, tag:ae0f8c8f-59d4-46d8-88fe-6725a1ef176c
E/flutter ( 4881): java.lang.Thread.run(Thread.java:923)
E/flutter ( 4881): java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/flutter ( 4881): java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/flutter ( 4881): androidx.work.Worker$1.run(Worker.java:85)
E/flutter ( 4881): com.bluechilli.flutteruploader.UploadWorker.doWork(UploadWorker.java:229)
E/flutter ( 4881): okhttp3.RealCall.execute(RealCall.kt:66)
E/flutter ( 4881): okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:184)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:71)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:84)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:82)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
E/flutter ( 4881): okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
E/flutter ( 4881): okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:35)
E/flutter ( 4881): okhttp3.internal.connection.Transmitter.newExchange$okhttp(Transmitter.kt:162)
E/flutter ( 4881): okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:77)
E/flutter ( 4881): okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:109)
E/flutter ( 4881): okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:199)
E/flutter ( 4881): okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71)
E/flutter ( 4881): okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:125)
E/flutter ( 4881): okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:160)
E/flutter ( 4881): okhttp3.Dns$Companion$SYSTEM$1.lookup(Dns.kt:48)
E/flutter ( 4881): java.net.InetAddress.getAllByName(InetAddress.java:1152)
E/flutter ( 4881): java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
E/flutter ( 4881): java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
D/UploadWorker( 4881): Start uploading for c1a85bcf-9b9f-4f5e-a9b4-ba62b2712f96
D/UploadWorker( 4881): Start uploading for 091da34b-d63c-40a4-b7be-629ca0fc9594
I/mple.siftmobil( 4881): Waiting for a blocking GC ProfileSaver
I/mple.siftmobil( 4881): WaitForGcToComplete blocked ProfileSaver on HeapTrim for 8.002ms
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 8192, contentLength: 97267, progress: 8, lastProgress: 0
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 16384, contentLength: 97267, progress: 17, lastProgress: 8
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 8192, contentLength: 128189, progress: 6, lastProgress: 0
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 16384, contentLength: 128189, progress: 13, lastProgress: 6
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 24576, contentLength: 97267, progress: 25, lastProgress: 17
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 32768, contentLength: 97267, progress: 34, lastProgress: 25
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 24576, contentLength: 128189, progress: 19, lastProgress: 13
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 40960, contentLength: 97267, progress: 42, lastProgress: 34
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 32768, contentLength: 128189, progress: 26, lastProgress: 19
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 49152, contentLength: 97267, progress: 51, lastProgress: 42
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 40960, contentLength: 128189, progress: 32, lastProgress: 26
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 49152, contentLength: 128189, progress: 38, lastProgress: 32
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 57344, contentLength: 97267, progress: 59, lastProgress: 51
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 65536, contentLength: 97267, progress: 67, lastProgress: 59
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 57344, contentLength: 128189, progress: 45, lastProgress: 38
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 73728, contentLength: 97267, progress: 76, lastProgress: 67
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 81920, contentLength: 97267, progress: 84, lastProgress: 76
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 65536, contentLength: 128189, progress: 51, lastProgress: 45
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 90112, contentLength: 97267, progress: 93, lastProgress: 84
D/UploadWorker( 4881): taskId: 107ef792-e15e-452e-8dbf-9e8f479ec732, bytesWritten: 97267, contentLength: 97267, progress: 100, lastProgress: 93
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 73728, contentLength: 128189, progress: 58, lastProgress: 51
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 81920, contentLength: 128189, progress: 64, lastProgress: 58
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 90112, contentLength: 128189, progress: 70, lastProgress: 64
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 98304, contentLength: 128189, progress: 77, lastProgress: 70
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 106496, contentLength: 128189, progress: 83, lastProgress: 77
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 114688, contentLength: 128189, progress: 89, lastProgress: 83
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 122880, contentLength: 128189, progress: 96, lastProgress: 89
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
D/UploadWorker( 4881): taskId: 86e68f15-94a1-477b-8cab-7ca8f08649d8, bytesWritten: 128189, contentLength: 128189, progress: 100, lastProgress: 96
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Running
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/chatty  ( 4881): uid=10151(com.example.siftmobile) 1.ui identical 5 lines
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Running
I/flutter ( 4881): WebSocketStatus.Connected
D/UploadWorker( 4881): Response: 
D/UploadWorker( 4881): Response header: {"Server":"AmazonS3","ETag":"\"3e88200fa696feaabfb6dc2c35a4cd97\"","x-amz-request-id":"4820AD15639D4720","Content-Length":"0","x-amz-id-2":"fGnwolhicwJ4ck/dBAHYrsFtf6+Fsu/DtchniLPyu3DjG7bI4CH2M6zCQvTEbppqDPAoWYOFuNE\u003d","Date":"Fri, 06 Nov 2020 14:49:44 GMT"}
I/WM-WorkerWrapper( 4881): Worker result SUCCESS for Work [ id=107ef792-e15e-452e-8dbf-9e8f479ec732, tags={ flutter_upload_task, com.bluechilli.flutteruploader.UploadWorker } ]
I/flutter ( 4881): taksId: 107ef792-e15e-452e-8dbf-9e8f479ec732 | Completed
D/UploadWorker( 4881): Response: 
D/UploadWorker( 4881): Response header: {"Server":"AmazonS3","ETag":"\"be945a2398866dbf20250c34895a7c6e\"","x-amz-request-id":"4D6E5E91FFCBA1E3","Content-Length":"0","x-amz-id-2":"JRxpHFeByiWzA0IvYcbCIMK8PSeHtBiKLvKmDH1u4yXlqgrCx7bKZhcjW7zmEbfIpbTyVC8cWhM\u003d","Date":"Fri, 06 Nov 2020 14:49:47 GMT"}
I/WM-WorkerWrapper( 4881): Worker result SUCCESS for Work [ id=86e68f15-94a1-477b-8cab-7ca8f08649d8, tags={ flutter_upload_task, com.bluechilli.flutteruploader.UploadWorker } ]
I/flutter ( 4881): taksId: 86e68f15-94a1-477b-8cab-7ca8f08649d8 | Completed```
UzairSun93 commented 3 years ago

I am facing the same issue only in android devices..

ened commented 3 years ago

@petroniuchacz @UzairSun93 Please try again using 2.0.0-beta.4. My test case worked fine:

Existing uploads may restart from the beginning.

Maxim-Mazurok commented 3 years ago

I'm having the same issue in my app on Android 30 emulator. If I remove the app from recently opened (quit, but not force stop) and if I leave the emulator locked - it'll eventually start failing to resolve the host in my background worker.

Then when I wake up the device, go to chrome - I can access the internet. And background worker will succeed in making HTTP request again, without needing to restart the app.

I think it might be battery optimization of sorts.

ened commented 3 years ago

@Maxim-Mazurok please share details on your phone model and OS.

Sounds like this issue: https://eu.community.samsung.com/t5/galaxy-a-series/no-internet-when-i-lock-my-phone/td-p/1249349

The plug-in currently requires WiFi to function thus it makes sense this will stop when WiFi is gone (and the phone is in BG).

Maxim-Mazurok commented 3 years ago

Disclaimer: I'm not using this plugin, just getting a similar error with my own code.

@ened I'm running on an Android Studio emulator. Pixel 3a, API 30 (Android 11.0) x86: sdk_gphone_x86_arm-userdebug 11 RSR1.201013.001 6903271 dev-keys

I've checked the wifi policy:

.\adb.exe shell settings get global wifi_sleep_policy
2

and it's "Keep WiFi on during sleep: Always"

I've had Battery Manager On though. I've disabled it and will see how it goes.

More details about my code and symptoms are in this question: https://stackoverflow.com/questions/65535857/how-to-fix-unable-to-resolve-host-error-in-workerwrapper


By the way, I plan to abandon the idea of making HTTP requests using WorkManager, and instead move polling logic to the server. And the server will send data notifications to the phone using firebase, which probably should be a bit more reliable in my case. But now that I've said it, I realized that if there's no WiFi for WorkManager - there'll be no WiFi to receive notifications as well... Unless Android is disabling network access specifically for my worker, and not for notifications...

Maxim-Mazurok commented 3 years ago

Update: I can confirm that now, with Battery Manager turned off I get network access in my worker reliably. So, it must be it, I guess.