-
Notifications
You must be signed in to change notification settings - Fork 856
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
Deleting S3 object fails on .NET for iOS. #3140
Comments
@joduss Good morning. The mentioned error is returned by the S3 service, refer S3: List of error codes. Perhaps, somehow on iOS, there might be erroneous header being sent to S3 service which is causing the error.
Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.Console;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener()); Thanks, |
Now regarding your questions:
I will share the logs next week. Workaround (Does not work)I thought I found a workaround. Somehow it did work for a while but does not anymore: Initial answer: I did found in the meantime a workaround by instantiating the client in a different way and specifying the new AmazonS3Client(
Credential.AccessKey,
Credential.SecretKey,
new AmazonS3Config {
RegionEndpoint = RegionEndpoint.GetBySystemName(regionResponse.Location),
DefaultConfigurationMode = DefaultConfigurationMode.Standard // This fixes things.
}
); |
Here are the logs: |
@joduss Good morning. Thanks for the response and confirming that the workaround initially shared by you in #3140 (comment) when setting In the logs, I see the below error:
It mentions error I'm unsure if Could you please share the following:
Similar issue aws/aws-sdk-js#2787, but with no concrete information about the root cause or resolution. Thanks, |
|
Good day @joduss, |
This is the request I captured from the .Net iOS app:
Now for comparison, the request made the console app:
|
There is one additional observation I made: If the file is very small, the delete requests fails as explained above. If the file is larger, it succeeds. The header differs depending if the request is to delete a large file or a small file. Header of request to delete a file of size 1085 bytes:
Header of request to delete a file of size 903'440 bytes:
|
Thank you for sharing the requests, I couldn't find anything that might cause this issue from the SDK side. |
V1197046386 |
Describe the bug
We are using the AWS SDK for .Net in an iOS application built using .NET 8.
We are observing a possible bug when trying to delete an object in a bucket:
In the iOS application, we constantly get an exception (
AmazonS3Exception: A header you provided implies functionality that is not implemented
) while the same code works fine in a .NET 8 console application. Before migrating the app from Xamarin.iOS to .NET 8, it used to work fine as well.Expected Behavior
The object should be successfully deleted.
Current Behavior
The following exception is thrown:
Reproduction Steps
Use the following code in an application, replacing uppercased values.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.S3 3.7.305.5
Targeted .NET Platform
.NET8-iOS
Operating System and version
iOS 17
The text was updated successfully, but these errors were encountered: