You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a function that uses awsTransferUtility to upload from an URL (for example a video or a gif)
To Reproduce
The user selects a GIF from Photos app
Setup AWSS3TransferUtility and upload the file from given URL:
return try await withCheckedThrowingContinuation { continuation in
defer {
let continuationError = NSError(domain: "S3AsyncWorker",
code: 999,
userInfo: [NSLocalizedDescriptionKey: "Continuation was not resumed properly."])
continuation.resume(throwing: continuationError)
}
func transferUtility(uploadFile: URL, contentType: String) {
awsTransferUtility.uploadFile(uploadFile,
bucket: bucket,
key: key,
contentType: contentType,
expression: expression) { task, error in
if let error = error {
....
} else {
....
}
}
}
....
}
The completion block is not called
The same flow is executed for a video and everything works great, in case of video contentType is "video/mp4", in case of gif is "image/gif"
This is printed at console: SWIFT TASK CONTINUATION MISUSE: execute(data:) leaked its continuation!
Later edit:
after I added defer, the worker is throwing the error "Continuation was not resumed properly."
Environment(please complete the following information):
SDK Version: 2.37.2
Dependency Manager: SPM
Xcode Version: 16.1
Device Information (please complete the following information):
Device: iPhone 14 Pro
iOS Version: 18.1
Later edit:
So, the issue is related to the url for GIFs selected from Photos app.
At the moment when the user selects a GIF, I covert it to Data and use awsTransferUtility.uploadData and everything works as expected.
The text was updated successfully, but these errors were encountered:
Hi @nastasiupta, thank you for submitting the issue!
One of our team members will look into this and verify if it's a bug in the library.
Meanwhile, could you provide us with your full logs?
Describe the bug
I have a function that uses awsTransferUtility to upload from an URL (for example a video or a gif)
To Reproduce
The same flow is executed for a video and everything works great, in case of video contentType is "video/mp4", in case of gif is "image/gif"
This is printed at console: SWIFT TASK CONTINUATION MISUSE: execute(data:) leaked its continuation!
Later edit:
after I added defer, the worker is throwing the error "Continuation was not resumed properly."
Environment(please complete the following information):
Device Information (please complete the following information):
Later edit:
So, the issue is related to the url for GIFs selected from Photos app.
At the moment when the user selects a GIF, I covert it to Data and use awsTransferUtility.uploadData and everything works as expected.
The text was updated successfully, but these errors were encountered: