小编bod*_*743的帖子

botocore.exceptions.ClientError An error occurred (SignatureDoesNotMatch) when calling the GetObject operation

While running the following code:

import boto3
BUCKET = 'bwd-plfb'

s3 = boto3.client('s3',use_ssl = False)

resp = s3.list_objects_v2(Bucket = BUCKET )

s3.download_file(BUCKET,'20171018/OK/OK_All.zip','test.zip')
Run Code Online (Sandbox Code Playgroud)

I'm getting the following error:

   botocore.exceptions.ClientError: An error occurred 
   (SignatureDoesNotMatch) when calling the GetObject operation: The request 
   signature we calculated does not match the signature you provided. Check 
   your key and signing method.
Run Code Online (Sandbox Code Playgroud)

What I've tried so far:

  1. Double checking Access key ID and Secret access key configured in aws cli (Running aws configure in command prompt) - …

python ssl amazon-s3 amazon-web-services boto3

5
推荐指数
1
解决办法
2078
查看次数

标签 统计

amazon-s3 ×1

amazon-web-services ×1

boto3 ×1

python ×1

ssl ×1