Boto3: ssl_context error

Created on 12 Sep 2018  路  8Comments  路  Source: boto/boto3

error

HTTPClientError: An HTTP Client raised and unhandled exception: __init__() got an unexpected keyword argument 'ssl_context'

env

python 2.7
boto3 1.9.2

code

client = boto3.client(
    's3',
    aws_access_key_id=access_key,
    aws_secret_access_key=secret_key,
    use_ssl=False,
    verify=False
)
client.list_buckets()

When drop use_ssl and veriry error still exists.

Most helpful comment

@protream Why did you close this? I'm having the same issue. Did you find a solution?

All 8 comments

@protream Why did you close this? I'm having the same issue. Did you find a solution?

Same here

I'm having the same problem in python2, but not in python3

Anyone have a solution for this? I'm getting the same errors on python3. Switching aws cli versions didn't seem to help either.

Running python 3.6 and hitting the same issue.

Same issue even today with python 2.7

me too. getting the same issue.
Python 2.7 and Boto3 1.9

Not sure if it's helpful but I solved it with boto.connect_s3 for python 2.7:

boto.connect_s3(
  aws_access_key_id=[ACCESS KEY], 
  aws_secret_access_key=[SECRET KEY], 
  host='localhost', 
  port=4572, 
  is_secure=True, 
  calling_format=boto.s3.connection.OrdinaryCallingFormat()
)
Was this page helpful?
0 / 5 - 0 ratings