amazon web services - Timeout error when listing S3 buckets using erlcloud -
I'm trying to use the library for S3 uploads in my app. As a test, I'm trying to get it iex
list of the bucket through the console:
iex (4) & gt; S3 =: erlcloud_s3.new ("KEY_ID", "SECRET_KEY") ... iex (5) & gt; : Erlcloud_s3.list_buckets (S3) ** (ErlangError) erlang error: {: aws_error, {: socket_error ,: timeout}} (erlcloud) src / erlcloud_s3.erl: 909: erlcloud_s3.s3_request / 8 (erlcloud) src / erlcloud_s3 .erl: 893: erlcloud_s3.s3_xml_request / 8 (erlcloud) src / erlcloud_s3.erl: 238: erlcloud_s3.list_buckets / 1
that I've see inets
, SSL
, and erlcoud
Irb
.
I have tried to configure it with more timeouts, but it does not matter how much I set it up, I still get this error.
Any thoughts? Or can I debug it?
I can simulate the same error, and I can solve it with single-coat Place of double-coat.
& gt; IEX (4) & gt; S3 =: erlcloud_s3.new ('KEY_ID', 'SECRET_KEY') & gt; IEX (5) & gt; : Erlcloud_s3.list_buckets (S3)
It is believed was used in the double-quote, it might cause a type mismatch between the string and four-List
Comments
Post a Comment