-
Notifications
You must be signed in to change notification settings - Fork 884
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
Get error while uploading a file on S3 bucket with latest release 2.37.1 #5443
Comments
Hi @VijayInnovana , thanks for reaching out. There were no functionality changes made to the To help us investigate further, please provide the following:
|
we use default configurations like this : let credentialsProvider = AWSStaticCredentialsProvider(accessKey: accessKey, secretKey: secretKey) After updating pods from 2.36.7 to 2.37.1 this issue occurs. when I am downgrade the pods from 2.37.1 to 2.36.7 without any app code changed, its working fine now. |
Thanks, we'll take a look. But please provide the verbose logs as well. |
I replicated your setup and was still able to upload successfully calling Some follow up questions:
Also, could you please share the full callsite to see what parameters you're including? Or alternatively, if you're able, a sample app project that reproduces the issue. Thanks! |
Xcode version = version 16.0 (Current) When I am downgrade the pods from 2.37.1 to 2.36.7 without any app code changed, its working fine with latest Xcode and iOS version. |
Hi @ruisebas, |
Hi @VijayInnovana, we're not able to reproduce this issue on our side. To better assist you, please provide the following as previously requested:
Thanks. |
hi @ruisebas, Below added sample project and log files for both versions (2.37.2 and 2.36.7) "AWS_2.36.7-Version_success_logs" this is successfully uploaded file on S3 server with 2.36.7 version. AWSSample.zip Please let me know if you need any other informations. |
Hi @VijayInnovana, thanks a lot for the information. Based on the logs, I could see that version I was able to reproduce the issue using the sample app you provided, and I found the root cause: You have manually implemented a mechanism to transform a Version 2.37.0 added support for the new We regularly add new supported regions to the SDK, so this manual approach is not recommended. let awsAccessRegion: NSString = "ap-south-1" // i.e. your region
let configuration = AWSServiceConfiguration(
region: awsAccessRegion.aws_regionTypeValue(),
credentialsProvider: credentialsProvider
)
AWSServiceManager.default().defaultServiceConfiguration = configuration |
Thanks for the information @ruisebas, As you suggested now my issue is resolved. |
Great to hear that! I'm closing this issue then. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Getting error while uploading a file on S3 bucket with latest release 2.37.1
before this release working file, with the previous release 2.36.7 its working fine. After updating pods app getting this error :
Domain=com.amazonaws.AWSS3TransferUtilityErrorDomain Code=2 "Client Error" UserInfo={Server=AmazonS3, Transfer-Encoding=Identity, Connection=close, Content-Type=application/xml, Date=Wed, 25 Sep 2024 11:43:20 GMT, x-amz-request-id=1Y3CXQFS4V3V9E7R, NSLocalizedFailureReason=bad request, x-amz-id-2=6laFTPQe0JwIaqGf5RNozsa0VEzyuEpIj+OAlvZTDkVWqWraAa4klCl40p/mQUlYoC4M0L0TyIA=, HTTPStatusCode=400, NSLocalizedDescription=Client Error, x-amz-bucket-region=ap-south-1})
We used this function for uploading file on S3
"AWSS3TransferUtility.default().uploadData"
Please resolved this issue ASAP. My user base facing issue with file uploads on productions environments.
The text was updated successfully, but these errors were encountered: