SignatureDoesNotMatch error when calling the PutObject operation for S3 upload
See original GitHub issueI am using python 3.5 with boto3==1.2.4 and botocore==1.3.29 on a Mac OSX Version 10.11.13.
I am experiencing the following issue:
An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the signature you provided. Check your key and signing method.>
Here is the code:
self.session = Session(aws_access_key_id=self.api_key,
aws_secret_access_key=self.api_secret_key,
region_name=self.region_name)
self.s3_o = self.session.resource('s3')
bucket_o = self.s3_o.Bucket(container_name)
sample = "this should work"
bucket_o.put_object(Key='test1234', Body=sample)
What am I doing wrong? Thanks in advance for your help.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
AWS CLI listing S3 buckets gives SignatureDoesNotMatch ...
A client error (SignatureDoesNotMatch) occurred when calling the ListBuckets operation: The request signature we calculated does not match the ...
Read more >Signature errors when uploading files to S3 - Upstart
An error occurred (SignatureDoesNotMatch) when calling the PutObject operation: The request signature we calculated does not match the ...
Read more >Solved: Upload File to AWS S3 Bucket Error due to AWS Sign...
Solved: Currently I'm trying to upload a file to an AWS S3 Bucket but I ... target" when calling the PutObject function for...
Read more >Access denied when uploading to KMS-encrypted Amazon S3 ...
"An error occurred (AccessDenied) when calling the PutObject operation: Access Denied". This error message indicates that your IAM user or role ...
Read more >AWS SignatureDoesNotMatch error
An error occurred (SignatureDoesNotMatch) when calling the GetCallerIdentity operation: The request signature we calculated does not match ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Apologies. My mistake! One character was missing for the secret key. It’s working now. Thanks!
OH MY GOD, I CAN’T BELIEVE I MADE THIS MISTAKE TOO! Now I can finally drink some water.