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

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
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
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
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
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
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
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
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
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
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
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

We're in Beta

About us Mission Statement