-
Notifications
You must be signed in to change notification settings - Fork 80
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
There is no way to cancel a request (download or upload) if internet disable #1529
Comments
Hello! Thank you for creating this issue! We will look into this and get back to you once we know more. |
@harshadmehmood After doing a quick test-run, I've confirmed that this is no longer an issue in the latest SDK version, v0.44.0. With each new minor release, we routinely fix bugs; this may have been one of those that have been addressed. Instead of v0.23.0, please try using the latest version. |
@sichanyoo many thanks indeed, issue fixed, but i got another one after updating SDK, its related to the output i get when calling getObject method, the scenario is,
|
here is console log, in this case dont catch error at all.
|
Hmm I see. Thank you for the follow-up, we'll look into this further. |
A fix for this issue will be included in our next release. The stream used to receive response data should now throw with any connection error received after the initial HTTP response is received, but while the body is still streaming. |
Describe the bug
While trying to download a file using getObject method, there is no way to detect if there is any error in network connection
Expected Behavior
Method should return some sort of error in catch block
Current Behavior
No fallback in catch when internet disconnected, no way to cancel the request
Reproduction Steps
let input = GetObjectInput( bucket: bucket, key: key ) do { let output = try await client.getObject(input: input) } catch { print("error while download : \(error)") }
Possible Solution
No response
Additional Information/Context
No response
AWS SWIFT SDK version used
0.23.0
Compiler and Version used
xcode :Version 15.4 (15F31d), swift: version 5
Operating System and version
MacOS Sonoma 14.4.1 (23E224)
The text was updated successfully, but these errors were encountered: