Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant use s3 bucket names with dots #98

Closed
balihoo-gens opened this issue Nov 21, 2016 · 6 comments
Closed

cant use s3 bucket names with dots #98

balihoo-gens opened this issue Nov 21, 2016 · 6 comments

Comments

@balihoo-gens
Copy link

 with smart_open.smart_open('s3://balihoo.fulfillment.dev/retain_7_0/test.txt', 'wb') as f:
    f.write('test')

results in:
ssl.CertificateError: hostname 'balihoo.fulfillment.dev.s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'

I tried to fix this with the 'host' parameter, but I can't get it to write the file.

@tmylk
Copy link
Contributor

tmylk commented Nov 22, 2016

Hi @balihoo-gens, Does adding calling_format fix it as in your previous PR #83 ?

@balihoo-gens
Copy link
Author

ha, will try. That PR is not mine, but by one of my coworkers, @balihoo-dengstrom
I actually ended up using s3fs: https://github.com/dask/s3fs

@tmylk
Copy link
Contributor

tmylk commented Nov 22, 2016

Thanks for the link. You are not using a proxy, right? Or did s3fs get around boto/boto3#338 ? That is the issue that is blocking us from moving to boto3.

@balihoo-gens
Copy link
Author

I am using this from an AWS Lambda function

@mpenkov
Copy link
Collaborator

mpenkov commented Dec 10, 2017

This looks like a duplicate of Issue #26 @menshikh-iv

@menshikh-iv
Copy link
Contributor

menshikh-iv commented Dec 13, 2017

@mpenkov yep
@balihoo-gens already fixed in current master fbc82cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants