stavro / arc

:paperclip: Flexible file upload and attachment library for Elixir
1.17k stars 211 forks source link

{:error, [:invalid_bucket]} #269

Closed sebastialonso closed 6 years ago

sebastialonso commented 6 years ago

Environment

Expected behavior

Save file in my AWS bucket

Actual behavior

[error] %ExAws.Error{message: "Missing XML parser. Please see docs"}
[error] Missing XML parser. Please see docs
[error] {:error, [:invalid_bucket]}
[info] Sent 422 in 1320ms

The thing is this same configuration for arc and ex_aws works in a sister project (files are been uploaded to the bucket from the sister project), but for some reason is not working here.

dev.exs

config :arc,
  storage: Arc.Storage.S3,
  bucket: "my-bucket",
  region: "us-east-2",
  virtual_host: true

config :ex_aws,
  access_key_id: [REDACTED],
  secret_access_key: [REDACTED],
  region: "us-east-2"
sebastialonso commented 6 years ago

Cleaning the libraries and installing them again did the trick

mix do deps.clean sweet_xml ex_aws, deps.get, deps.compile sweet_xml ex_aws as explained here