-
Notifications
You must be signed in to change notification settings - Fork 890
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
AWSS3TransferUtility GIF fails without any response #5462
Comments
Hi @nastasiupta, thank you for submitting the issue! |
Hi @nastasiupta, sorry for the delay in our response. This is happening because the I recognize that this is a confusing and somewhat unintuitive behaviour, but all the In your code, you could handle it like this: let uploadTask = awsTransferUtility.uploadFile(
uploadFile,
bucket: bucket,
key: key,
contentType: contentType,
expression: expression
) { task, error in
if let error = error {
// Upload failed, resume continuation with error
continuation.resume(throwing: error)
} else {
// Upload succeeded, resume continuation
continuation.resume()
}
}
if let error = uploadTask.error {
// Upload was not even attempted, resume continuation with error
continuation.resume(throwing: error)
} |
This issue is now closed. Comments on closed issues are hard for our team to see. |
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: