【发布时间】:2015-10-21 11:25:13
【问题描述】:
当我尝试构建 rebar3 时出现问题,但它无法从 Amazon S3 获取其依赖项。调试问题后,我发现 erlang 运行时无法连接到任何 HTTPS 站点,尽管 curl 或 wget 工作正常。当我设置httpc:set_options([{verbose,trace}]) 时,我得到以下输出:
{failed_connect,
[{to_address,{"s3.amazonaws.com",443}},
{inet,
[inet],
{eoptions,
{undef,
[{ssl,connect,
["s3.amazonaws.com",443,
[binary,
{active,false},
{ssl_imp,new},
inet],
20000],
[]},
{http_transport,connect,4,
[{file,"http_transport.erl"},{line,135}]},
{httpc_handler,connect,4,
[{file,"httpc_handler.erl"},{line,891}]},
{httpc_handler,
connect_and_send_first_request,3,
[{file,"httpc_handler.erl"},{line,905}]},
{httpc_handler,init,1,
[{file,"httpc_handler.erl"},{line,242}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}}}]}
我在哪里可以找到问题所在?
【问题讨论】: