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

2024-05-16 10:58:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图描述一个动觉流,我一直得到以下错误:

{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.

谢谢


Tags: theforstringrequesthavebotokinesisus