AungMyoOo168

AungMyoOo168

ExAws.S3 Auth issues

When i try these command got error like below

ExAws.S3.list_objects("bucket_name") |> ExAws.request(region: "my_region")

** (ArgumentError) expected a keyword list, but an entry in the list is not a two-element tuple with an atom as its first element, got: {“content-length”, 0}
(elixir 1.11.0) lib/keyword.ex:475: Keyword.keys/1
(ex_aws 1.1.5) lib/ex_aws/auth.ex:111: ExAws.Auth.build_canonical_request/5
(ex_aws 1.1.5) lib/ex_aws/auth.ex:96: ExAws.Auth.signature/8
(ex_aws 1.1.5) lib/ex_aws/auth.ex:87: ExAws.Auth.auth_header/7
(ex_aws 1.1.5) lib/ex_aws/auth.ex:39: ExAws.Auth.headers/6
(ex_aws 1.1.5) lib/ex_aws/request.ex:27: ExAws.Request.request_and_retry/7
(ex_aws 1.1.5) lib/ex_aws/operation/s3.ex:40: ExAws.Operation.ExAws.Operation.S3.perform/2

ExAws.Config.new(:s3)

When i try these command it return my key and secret_access_key that all are correct.

Please suggest me how to do this thing done

Marked As Solved

thefactus

thefactus

Hi @AungMyoOo168,

To fix this problem, you might have to update to the latest version
{:ex_aws, "~> 2.1.6"}
And run mix deps.get

I had the same problem

Cheers

Also Liked

AungMyoOo168

AungMyoOo168

The problem got solved when i changed the version to
{:ex_aws, "~> 2.1.6"}

Thanks much bro

outlog

outlog

what ex_aws version? try with 2.1.6, looks like you are using 1.1.5 which is from 2017…

AungMyoOo168

AungMyoOo168

The problem got solved when i changed the version to
{:ex_aws, "~> 2.1.6"}

Where Next?

Popular in Questions Top

senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
Fl4m3Ph03n1x
Background Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
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
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
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
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
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
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