Kinesis:我们计算的请求签名与您提供的签名不匹配

时间:2017-02-06 21:48:24

标签: python amazon-web-services boto amazon-kinesis

我正在尝试描述一个kinesis流,并且我不断收到以下错误:

{u'message': u"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.\n\nThe Canonical String for this request should have been\n'POST\n/\n\nhost:kinesis.us-east-1.amazonaws.com\nx-amz-date:20170206T213923Z\nx-amz-target:Kinesis_20131202.DescribeStream\n\nhost;x-amz-date;x-amz-target\ne44afc66cc6ee6f40d4f09cc4f15e8d85bff345f0a8736062433576fdc427db9'\n\nThe String-to-Sign should have been\n'AWS4-HMAC-SHA256\n20170206T213923Z\n20170206/us-east-1/kinesis/aws4_request\n7fb3a26fed309c6a6f7667a6abe2224ed132878a79d4aac984bc3b19b3add7c7'\n", u'__type': u'InvalidSignatureException'}

我知道我的boto键设置正确:

>>> import boto
>>> boto.set_stream_logger('boto')
>>> s3 = boto.connect_s3()
2017-02-06 16:46:47,366 boto [DEBUG]:Using access key found in config file.
2017-02-06 16:46:47,366 boto [DEBUG]:Using secret key found in config file.

由于

1 个答案:

答案 0 :(得分:0)

我通过重新生成我的秘密ID和密钥来修复此问题。必须在副本或其他东西上被截断。