Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Using AWS-SDK results in: SocketError: getaddrinfo: Name or service not known #59

Closed
eterps opened this issue Jul 16, 2014 · 1 comment

Comments

@eterps
Copy link

eterps commented Jul 16, 2014

According to https://github.com/jubos/fake-s3/wiki/Supported-Clients AWS-SDK is supported.

But when I try to use it:

fakes3 -r tmp/fakes3 -p 4567

s3 = AWS::S3.new(s3_endpoint: 'localhost', s3_port: 4567, use_ssl: false)
s3.buckets.create('test')

I get:

SocketError: getaddrinfo: Name or service not known

@eterps
Copy link
Author

eterps commented Jul 16, 2014

Nevermind, this works:

s3 = AWS::S3.new(access_key_id: 'YOUR_ACCESS_KEY_ID', secret_access_key: 'YOUR_SECRET_ACCESS_KEY', s3_endpoint: 'localhost', s3_port: 4567, use_ssl: false, s3_force_path_style: true)

@eterps eterps closed this as completed Jul 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant