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

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

ibmcloud cos list-buckets returns Invalid Arguement status code 400 #1

Closed parodayco closed 5 years ago

parodayco commented 5 years ago

~ >>> ibmcloud login --sso API endpoint: https://cloud.ibm.com Region: us-south

Get One Time Code from https://identity-2.us-south.iam.cloud.ibm.com/identity/passcode to proceed. Open the URL in the default browser? [Y/n]> Y One Time Code > Authenticating... OK Select an account:

Philip Parodayco's Account (xxxxxxxxxxxx)
Public-Dedicated CIO Cloud Services (xxxxxxxxxxxx) <-> 1777481
CIO Public (xxxxxxxxxxxx) <-> 1359057
Enter a number> 3
Targeted account CIO Public (xxxxxxxxxxxx) <-> 1359057

~ >>> ibmcloud target -g main API endpoint: https://cloud.ibm.com Region: us-south User: paroday@us.ibm.com Account: CIO Public (xxxxxxxxxxxx) <-> 1359057 Resource group: main CF API endpoint: Org: Space:

~ >>> ibmcloud cos config list Key Value Last Updated Default Region us-south Download Location /Users/paroday@us.ibm.com/Downloads CRN AccessKeyID SecretAccessKey Authentication Method IAM

~ >>> ibmcloud cos list-buckets Loading buckets... FAILED InvalidArgument: Invalid Argument status code: 400, request id: 28f97c65-e1f2-49b1-87d2-a4bed5f9234e, host id:

~ >>> ibmcloud cos list-objects --bucket badge-reports-cognos Listing objects... OK Found 31 objects in bucket 'badge-reports-cognos':

So the app can see a specified bucket but cannot list all buckets. Any ideas?

ibmcloud version 0.16.2+d1a5f92-2019-06-10T13:38:41+00:00 ibmcloud cloud-object-storage plugin version 1.0.0, sdk version 0.2.1

parodayco commented 5 years ago

Moved ticket to https://github.ibm.com/objectstore/cases/issues/269