-
Notifications
You must be signed in to change notification settings - Fork 577
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
SignatureDoesNotMatch Error in S3 PUT Object in React Native #6033
Comments
Hi @waleedshkt - thanks for reaching out. Here are a couple things I'd like to point out before further debugging:
A few questions:
Let me know if issue persists and I'll be happy to further investigate. |
Thanks for the response. Yes, I double checked the content type. This property is a string. I also made it lowercase as there was a similar mismatch issue raised earlier. But that didn't work either. Error kept popping up I'm deliberately clinging to RN v0.69 owing to compatibility issues in newer versions with many node packages Yes, other s3 commands are successfully executing |
Thank you for your response and apology for the wait. Are you still running into the issue? If so, can you please add this middleware stack to your code and share the output with us? s3Client.middlewareStack.add(next => async (args) => {
console.log(args.request)
const response = await next(args);
console.log(response);
return next(args);
}, {step: 'finalizeRequest'}) |
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Checkboxes for prior research
Describe the bug
The issue is stemming when I upload an base64-encoded JPEG image to S3 in React Native. I possible reasons were checked but to no avail. There is no issue with credentials (they aren't expired or mistyped as they work successfully in putting record to Aurora) nor with the request headers. In fact, the same logic works okay in web app.
I also tested different versions of the S3 client. Initially installed v3.556.0 and v.503.1 (installed in web app). But the same error is popping repeatedly.
SDK version number
@aws-sdk/client-s3@3.556.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node v20.10.0
andreact-native v0.69.10
Reproduction Steps
Observed Behavior
The above mentioned comes up as been mentioned earlier
Expected Behavior
Image should be uploading successfully
Possible Solution
Workaround for now is to use Amplify Storage to upload image
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: