ibm-cloud-docs / cloud-object-storage-cli-plugin

cloud-object-storage-cli-plugin
0 stars 3 forks source link

Failed with "The specified key does not exist" when create cos object #4

Closed zyjiaobj closed 4 years ago

zyjiaobj commented 4 years ago

I'm referring the document https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-cli-plugin-ic-cos-cli to upload file in to a cos bucket, but always getting a error saying that "The specified key does not exist."

$ ibmcloud cos put-object --bucket cos-ce-perf-bucket-dev-serving --key create_times.csv --body /Users/zyjiaobj/Code/coligo/e2e-test-agent/perf/create_times.csv
FAILED
The specified key does not exist.

$ ibmcloud cos upload --bucket cos-ce-perf-bucket-dev-serving --key create_times.csv --file /Users/zyjiaobj/Code/coligo/e2e-test-agent/perf/create_times.csv
FAILED
The specified key does not exist.
cloudpitchford commented 4 years ago

Using the path from the "body" attribute worked for me. Please let me know what you find.

cloudpitchford commented 4 years ago

Please feel free to open a new issue if there are more comments, questions, or concerns!