ssl - Erlang can't connect to any HTTPS url -


the problem arose when trying build rebar3, couldn't fetch dependencies amazon s3. debugging problem found out erlang runtime couldn't connect https site, although curl or wget work fine. when set httpc:set_options([{verbose,trace}]), following output:

    {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}]}]}}}]} 

where can find out problem ?

you missing ssl erlang application. linux distributions split erlang several subpackages. should make sure have package erlang-ssl installed on system.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -