IBM Cloud - 对象存储,nosuchkey

时间:2018-02-19 18:59:56

标签: ibm-cloud object-storage

我遵循了教程: https://console.bluemix.net/docs/tutorials/static-files-cdn.html#accelerate-delivery-of-static-files-using-a-cdn

但是当我执行curl -X "PUT" \ "https://s3-api.us-geo.objectstorage.softlayer.net/$BUCKET_NAME/a-picture.png" \ -H "x-amz-acl: public-read" \ -H "Authorization: Bearer $IAM_TOKEN" \ -H "Content-Type: image/png" \ -T a-picture.png

时,我收到了错误消息

错误消息如下所示。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Error>
  <Code>NoSuchKey</Code>
  <Message>The specified key does not exist.</Message>
  <Resource>/cdndata/a-picture.png</Resource>
  <RequestId>76d84ccf-4c7a-48fa-8cee-6040e0287d5b</RequestId>
  <httpStatusCode>404</httpStatusCode>
</Error>

我错过了什么关键以及如何生成它?请指教。谢谢。

1 个答案:

答案 0 :(得分:0)

键指的是对象名称。在发出此命令之前,您确定存储桶是否存在吗?