【发布时间】:2022-01-21 19:41:42
【问题描述】:
这是我的 boto3 命令,用于从 S3 存储桶中获取具有特定键的对象:
resp = s3client.get_object(Bucket='<>-<>', Key='MzA1MjY1NzkzX2QudHh0')
它给出了以下错误:
botocore.errorfactory.NoSuchKey: An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist.
我已经在bucket中检查过,key确实存在
我是错过了什么还是我做错了什么?
【问题讨论】: