IBM-Cloud / ibm-cloud-cli-release

Apache License 2.0
154 stars 76 forks source link

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

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:

  1. Philip Parodayco's Account (xxxxxxxxxxxx)
  2. Public-Dedicated CIO Cloud Services (xxxxxxxxxxxx) <-> 1777481
  3. 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?

parodayco commented 5 years ago

ibmcloud version 0.16.2+d1a5f92-2019-06-10T13:38:41+00:00

parodayco commented 5 years ago

I'll close this and move the issue to https://github.com/IBM-Bluemix-Docs/cloud-object-storage-cli-plugin/issues/1