{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/532","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/532/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/532/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/532","id":33114290,"number":532,"title":"getaddrinfo: nodename nor servname provided, or not known (SocketError)","user":{"login":"jrab89","id":3112565,"avatar_url":"https://avatars.githubusercontent.com/u/3112565?v=3","gravatar_id":"","url":"https://api.github.com/users/jrab89","html_url":"https://github.com/jrab89","followers_url":"https://api.github.com/users/jrab89/followers","following_url":"https://api.github.com/users/jrab89/following{/other_user}","gists_url":"https://api.github.com/users/jrab89/gists{/gist_id}","starred_url":"https://api.github.com/users/jrab89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrab89/subscriptions","organizations_url":"https://api.github.com/users/jrab89/orgs","repos_url":"https://api.github.com/users/jrab89/repos","events_url":"https://api.github.com/users/jrab89/events{/privacy}","received_events_url":"https://api.github.com/users/jrab89/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-05-08T19:15:37Z","updated_at":"2015-01-18T07:46:59Z","closed_at":"2014-05-08T22:51:59Z","body":"I'm getting this error with ruby-2.0.0-p247 and aws-sdk (1.40.0) when I try to run the following:\r\n```\r\nrequire 'aws-sdk'\r\nAWS.config( :access_key_id => ENV['AWS_ACCESS_KEY_ID'], :secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'])\r\nputs AWS.s3.buckets.first.exists?\r\n```\r\nThis seems to go away when I instead use aws-sdk (1.38.0). Any ideas what could be going on here? Here is the full stack trace for reference:\r\n```\r\n/Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)\r\n\tfrom /Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `open'\r\n\tfrom /Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'\r\n\tfrom /Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/timeout.rb:66:in `timeout'\r\n\tfrom /Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:877:in `connect'\r\n\tfrom /Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:862:in `do_start'\r\n\tfrom /Users/uraboje/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/net/http.rb:857:in `start'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/http/connection_pool.rb:321:in `start_session'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/http/connection_pool.rb:125:in `session_for'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/http/net_http_handler.rb:55:in `handle'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:253:in `block in make_sync_request'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:289:in `retry_server_errors'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:249:in `make_sync_request'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:511:in `block (2 levels) in client_request'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:391:in `log_client_request'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:477:in `block in client_request'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:373:in `return_or_raise'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/core/client.rb:476:in `client_request'\r\n\tfrom (eval):3:in `list_buckets'\r\n\tfrom /Users/uraboje/.rvm/gems/ruby-2.0.0-p247/gems/aws-sdk-1.40.0/lib/aws/s3/bucket_collection.rb:140:in `each'\r\n\tfrom foo.rb:3:in `first'\r\n\tfrom foo.rb:3:in `<main>'\r\n``` \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/comments/70399508","html_url":"https://github.com/aws/aws-sdk-ruby/issues/532#issuecomment-70399508","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/532","id":70399508,"user":{"login":"erupenkman","id":4530546,"avatar_url":"https://avatars.githubusercontent.com/u/4530546?v=3","gravatar_id":"","url":"https://api.github.com/users/erupenkman","html_url":"https://github.com/erupenkman","followers_url":"https://api.github.com/users/erupenkman/followers","following_url":"https://api.github.com/users/erupenkman/following{/other_user}","gists_url":"https://api.github.com/users/erupenkman/gists{/gist_id}","starred_url":"https://api.github.com/users/erupenkman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erupenkman/subscriptions","organizations_url":"https://api.github.com/users/erupenkman/orgs","repos_url":"https://api.github.com/users/erupenkman/repos","events_url":"https://api.github.com/users/erupenkman/events{/privacy}","received_events_url":"https://api.github.com/users/erupenkman/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T07:46:59Z","updated_at":"2015-01-18T07:46:59Z","body":"just for anyone else, when running the opsworks register command, DO NOT change the region from us-east-1 to match the region your instances run in.\r\n\r\n I got the same error message and came here from search engine, hope it helps someone."}}