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

skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
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
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
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
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42716 114
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement