flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

URLSession:task:didCompleteWithError: i IOS

Open SalishKumar opened this issue 3 years ago • 10 comments

SalishKumar avatar Apr 01 '21 12:04 SalishKumar

I also encountered this issue, with flutter_downloader version 1.6.0. Here's the error log

startBackgroundIsolate
database path: /var/containers/Bundle/Application/8089EA16-D72F-44FF-BD7F-8E013A4D3A5A/Runner.app/Frameworks/flutter_downloader.framework/FlutterDownloaderDatabase.bundle/download_tasks.sql
MAXIMUM_CONCURRENT_TASKS = 3
init NSURLSession with id: id.xxx.transporterApp.download.background.1618389909.033087
AllFilesDownloadedMessage: All files have been downloaded
Absolute savedDir path: /var/mobile/Containers/Data/Application/FC161A69-8D7A-4229-9266-97F3B25A1BC9/Documents/Download
execute query: INSERT INTO task (task_id,url,status,progress,file_name,saved_dir,headers,resumable,show_notification,open_file_from_notification,time_created) VALUES ("id.xxx.transporterApp.download.background.1618389904.988880.1","https://xxx.s3.ap-southeast-1.amazonaws.com/docs/pdf/2021/4/12/a09dd254-fc16-4d6b-b945-0d495b32545e.pdf",1,0,"hello_test2.pdf","Download","",0,1,1,1618389933200)
open DB successfully
Query was executed successfully. Affected rows = 1
flutter: Background Isolate Callback: task (id.xxx.transporterApp.download.background.1618389904.988880.1) is in status (DownloadTaskStatus(1)) and process (0)
execute query: UPDATE task SET status=2, progress=100 WHERE task_id="id.xxx.transporterApp.download.background.1618389904.988880.1"
open DB successfully
flutter: Background Isolate Callback: task (id.xxx.transporterApp.download.background.1618389904.988880.1) is in status (DownloadTaskStatus(2)) and process (100)
Query was executed successfully. Affected rows = 1
URLSession:downloadTask:didFinishDownloadingToURL:
SuggestedFileName: a09dd254-fc16-4d6b-b945-0d495b32545e.pdf
savedDir: /var/mobile/Containers/Data/Application/FC161A69-8D7A-4229-9266-97F3B25A1BC9/Documents/Download
filename: hello_test2.pdf
execute query: UPDATE task SET status=3, progress=100 WHERE task_id="id.xxx.transporterApp.download.background.1618389904.988880.1"
flutter: Background Isolate Callback: task (id.xxx.transporterApp.download.background.1618389904.988880.1) is in status (DownloadTaskStatus(3)) and process (100)
open DB successfully
Query was executed successfully. Affected rows = 1
URLSession:task:didCompleteWithError:
HTTP status code: 200

kenny26 avatar Apr 14 '21 08:04 kenny26

any solutions yet.

Faiz-rhm avatar Aug 07 '21 10:08 Faiz-rhm

Same issue here. Any update?

jigarfumakiya avatar Aug 24 '21 11:08 jigarfumakiya

same issue

ios: 14.8 flutter_downloader: 1.7.0

gperez-88 avatar Sep 15 '21 15:09 gperez-88

@gperez-nolatech Nobody is maintaining this plugin better to move to other plugins.

jigarfumakiya avatar Sep 15 '21 16:09 jigarfumakiya

I have a similar issue, has anybody figured it out yet?

awaisabbasaa11 avatar Oct 11 '21 11:10 awaisabbasaa11

I have the same issue with the 1.7.1 release version implementing this package on iOS 15.1

ararage avatar Nov 26 '21 22:11 ararage

same issue

According to the doc, if the error object is NULL then that means the download was successful

mehayhe avatar Jun 15 '22 01:06 mehayhe

flutter_downloader: ^1.10.2 Same issue any idea? working fine for android but creating issue in IOS

ranjanAbhi24 avatar Apr 20 '23 07:04 ranjanAbhi24