Open van-ibm opened 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.
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.
Trying to do a first-time upload to a bucket that is either Regional or Single Site resiliency produces the following error.
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.