ibm-functions / package-cloud-object-storage

Deploy a Cloud Object Storage Package for IBM Functions.
Apache License 2.0
2 stars 9 forks source link

object-write fails for Regional or Single Site buckets #33

Open van-ibm opened 6 years ago

van-ibm commented 6 years ago

Trying to do a first-time upload to a bucket that is either Regional or Single Site resiliency produces the following error.

"message":"The specified key does not exist."

I think it may have its origin in this reported issue: https://github.com/IBM/ibm-cos-sdk-js/issues/26. I've asked for clarification. Depending on the outcome, it may require changes to the package's code.

van-ibm commented 6 years ago

Bit of user error; however, if the intent of using the package is to get away from having to write COS code, I expect someone else will make the same mistake. If the cos-sdk team creates a better error message, then it should pass through to the function.

But I think it could be called out better in the readme that the default is to the US-Geo Cross Region. For those creating Regional or Site Specfic buckets, set endpoint to one of the listed endpoints in Object Storage documentation.

guedes commented 5 years ago

Just for someone looking for this, I was using a US Cross Region Endpoints, BUT when I changed to some of US Regional Endpoints it works. I'm using this link as reference: https://console.bluemix.net/docs/services/cloud-object-storage/basics/endpoints.html#select-regions-and-endpoints

I was using https://s3.dal.us.cloud-object-storage.appdomain.cloud but the correct was https://s3.us-south.cloud-object-storage.appdomain.cloud.