【发布时间】:2011-07-20 19:06:01
【问题描述】:
我的 $AWS_ACCESS_KEY_ID 和 $AWS_SECRET_ACCESS_KEY 环境变量设置正确,我运行以下代码:
import boto
conn = boto.connect_s3()
并得到这个错误:
boto.exception.NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler']
发生了什么事?我不知道从哪里开始调试。
似乎 boto 没有从我的环境变量中获取值。如果我将密钥 id 和密钥作为参数传递给连接构造函数,则可以正常工作。
【问题讨论】:
标签: amazon-s3 amazon-web-services boto