aws / aws-sdk-ruby

The official AWS SDK for Ruby.
https://aws.amazon.com/sdk-for-ruby/
Apache License 2.0
3.57k stars 1.22k forks source link

AWS Device Farm - Aws::Errors::NoSuchEndpointError #2161

Closed bananita closed 4 years ago

bananita commented 4 years ago

Issue description

Trying to list Device Farm project results with error:

Encountered a `SocketError` while attempting to connect to: (Aws::Errors::NoSuchEndpointError)

  https://devicefarm.eu-west-1.amazonaws.com

This is typically the result of an invalid `:region` option or a
poorly formatted `:endpoint` option.

* Avoid configuring the `:endpoint` option directly. Endpoints are constructed
  from the `:region`. The `:endpoint` option is reserved for connecting to
  non-standard test endpoints.

* Not every service is available in every region.

* Never suffix region names with availability zones.
  Use "us-east-1", not "us-east-1a"

Known AWS regions include (not specific to this service):

ap-east-1
ap-northeast-1
ap-northeast-2
ap-south-1
ap-southeast-1
ap-southeast-2
ca-central-1
eu-central-1
eu-north-1
eu-west-1
eu-west-2
eu-west-3
me-south-1
sa-east-1
us-east-1
us-east-2
us-west-1
us-west-2
cn-north-1
cn-northwest-1
us-gov-east-1
us-gov-west-1
us-iso-east-1
us-isob-east-1`

Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version

aws-sdk 3.0.1

Version of Ruby, OS environment

ruby 2.6.3p62 OSX 10.14.5

Code snippets / steps to reproduce

require 'aws-sdk'
client = ::Aws::DeviceFarm::Client.new
projects = client.list_projects.projects
print(projects)
mullermp commented 4 years ago

Sorry for the delayed response. My best guess is that AWS Device Farm doesn't support eu-west-1? Looking at the console, they're global. This documentation suggests that you must use us-west-2.