lugomateo

lugomateo

HTTP Error ExAws Timestream - [warning] ExAws: HTTP ERROR:

I seem to be missing something crucial/basic when requesting info regarding my Amazon Timestream tables.
When I run ExAws.Config.new(:timestream) on production, I get (with credentials omitted):

%{
  debug_requests: true,
  host: nil,
  http_client: ExAws.Request.Hackney,
  json_codec: Jason,
  normalize_path: true,
  port: 443,
  region: "aws-us-gov-west-1",
  require_imds_v2: false,
  retries: [max_attempts: 10, base_backoff_in_ms: 10, max_backoff_in_ms: 10000],
  scheme: "https://",
}

I removed the credentials for this post but access_key_id, secret_access_key, and security_token do appear so I am led to think configuration might not be the issue.

Then when I test a simple request
ExAws.Timestream.list_databases() |> ExAws.request()
I see the following:

14:01:19.105 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 1
14:01:19.159 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 2
14:01:19.204 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 3
14:01:19.291 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 4
14:01:19.402 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 5
14:01:19.482 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 6
14:01:20.117 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 7
14:01:20.934 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 8
14:01:21.591 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 9
** (MatchError) no match of right hand side value: {:error, :nxdomain}
    (ex_aws_timestream 0.5.1) lib/ex_aws/operation/endpoint_discovery.ex:32: ExAws.Operation.ExAws.Operation.EndpointDiscovery.handle_endpoint_operation/2
    (ex_aws_timestream 0.5.1) lib/ex_aws/operation/endpoint_discovery.ex:19: ExAws.Operation.ExAws.Operation.EndpointDiscovery.perform/2
14:01:26.490 [warning] ExAws: HTTP ERROR: :nxdomain for URL: "https:/" ATTEMPT: 10

In mix.exs I have

{:ex_aws, "~> 2.3.2"},
{:ex_aws_timestream, "~> 0.5.1"},

Any ideas?
Thanks

Marked As Solved

lugomateo

lugomateo

Found the problem.
Just need to add timestream to the aws-us-gov partition in endpoints.exs
In the services for…

"partition" => "aws-us-gov",
"partitionName" => "AWS GovCloud (US)",

add…

"ingest.timestream" => %{"endpoints" => %{"us-gov-west-1" => %{}}},
"query.timestream" => %{"endpoints" => %{"us-gov-west-1" => %{}}},

Then call
ExAws.Timestream.list_databases() |> ExAws.request(region: "us-gov-west-1")

to see your databases

Where Next?

Popular in Questions Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New

Other popular topics Top

sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New

We're in Beta

About us Mission Statement