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

[iOS] can not download file having empty character in name #67

Closed
huynguyennovem opened this issue Aug 6, 2023 · 0 comments · Fixed by #68
Closed

[iOS] can not download file having empty character in name #67

huynguyennovem opened this issue Aug 6, 2023 · 0 comments · Fixed by #68
Labels
bug Something isn't working client ios

Comments

@huynguyennovem
Copy link
Owner

Steps:

  • Download a file has name: Image from iOS.png
  • File can not be downloaded

Expected result:

File should be downloaded and file state should be done (checked green icon)

Logs

Absolute savedDir path: /var/mobile/Containers/Data/Application/9562F48F-EB8F-4EFC-B569-7FC6FA6DD35C/Documents
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 ("com.app.netshare.download.task.73493.1691301891.514599","http://192.168.0.4:8080/Image from iOS.png",1,0,"<null>","","%7B%7D",0,1,1,1691301891515)
[logging-persist] cannot open file at line 45452 of [9ff244ce07]
[logging-persist] os_unix.c:45453: (0) open(/var/mobile/Containers/Data/Application/9562F48F-EB8F-4EFC-B569-7FC6FA6DD35C/Library/Application Support/download_tasks.sql) - Undefined error: 0
Could not execute the query.
flutter: Callback on background isolate: task (com.app.netshare.download.task.73493.1691301891.514599) is in status (DownloadTaskStatus(1)) and process (0)
Task <B46D7D53-F467-4911-B4F7-F3F49A609613>.<4> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={_NSURLErrorRelatedURLSessionTaskErrorKey=(
    "BackgroundDownloadTask <B46D7D53-F467-4911-B4F7-F3F49A609613>.<4>"
), NSLocalizedDescription=unsupported URL, _NSURLErrorFailingURLSessionTaskErrorKey=BackgroundDownloadTask <B46D7D53-F467-4911-B4F7-F3F49A609613>.<4>}
-[FlutterDownloaderPlugin URLSession:task:didCompleteWithError:] HTTP status code: 0
Download completed with error: unsupported URL
flutter: Callback on background isolate: task (com.app.netshare.download.task.73493.1691301891.514599) is in status (DownloadTaskStatus(4)) and process (-1)
[logging-persist] cannot open file at line 45452 of [9ff244ce07]
[logging-persist] os_unix.c:45453: (0) open(/var/mobile/Containers/Data/Application/9562F48F-EB8F-4EFC-B569-7FC6FA6DD35C/Library/Application Support/download_tasks.sql) - Undefined error: 0
Could not execute the query.
flutter: Download taskId: com.app.netshare.download.task.73493.1691301891.514599
flutter: [DownloadService] Download stream log: DownloadEntity(com.app.netshare.download.task.73493.1691301891.514599, Image from iOS.png, http://192.168.0.4:8080/Image from iOS.png, /var/mobile/Containers/Data/Application/9562F48F-EB8F-4EFC-B569-7FC6FA6DD35C/Documents, DownloadManner.flutterDownloader, DownloadState.downloading)
flutter: Fetched files: 41
@huynguyennovem huynguyennovem added bug Something isn't working client ios labels Aug 6, 2023
huycozy pushed a commit that referenced this issue Aug 6, 2023
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
huynguyennovem added a commit that referenced this issue Aug 6, 2023
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client ios
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant