ibm-cloud-docs / cloud-object-storage

cloud-object-storage
15 stars 46 forks source link

Getting HTTP Client error using the s3 client #82

Closed ncheaz closed 4 years ago

ncheaz commented 4 years ago

Operating system is Ubuntu 16.04 Python version is 3 Installed the AWS CLI using PIP AWS CLI version is aws-cli/1.16.309 Python/3.6.9 Linux/4.20.17-042017-generic botocore/1.13.45

I set the HMAC creds correctly and type the following in my command line:

ncheaz@thinkburger:~/Projects/drupal-interact$ aws --endpoint-url 'https://control.cloud-object-storage.cloud.ibm.com/v2/endpoints' s3 ls

An HTTP Client raised and unhandled exception: __init__() got an unexpected keyword argument 'ssl_context'
cloudpitchford commented 4 years ago

Good morning. Have you tried the IBM COS CLI? In your example, the endpoint is incorrect. I wasn't able to reproduce your problem when I installed the AWS CLI using the same approach as above, and tried:

aws --endpoint-url 'https://s3.us-south.cloud-object-storage.appdomain.cloud' s3 ls

Note that the endpoint in my example corresponds to the endpoint of my instance, based on my configuration. Have you provisioned your instance of COS? What region/resiliency have you chosen?

nglange commented 4 years ago

Closing this for now, but can reopen if @ncheaz needs additional guidance.