question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SignatureDoesNotMatch error when calling the PutObject operation for S3 upload

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
rehmanzilecommented, Feb 27, 2016

Apologies. My mistake! One character was missing for the secret key. It’s working now. Thanks!

5reactions
JohnDotOwlcommented, Aug 28, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found