【问题标题】:Error while using lhttpc from erlang shell从 erlang shell 使用 lhttpc 时出错
【发布时间】:2013-01-28 06:46:08
【问题描述】:

当我在 erlang shell 中运行以下操作时

lhttpc:request("http://www.google.co.uk", get, [], infinity).

我收到此错误

** exception exit: {noproc,{gen_server,call,
                                   [lhttpc_manager,
                                    {socket,<0.44.0>,"www.google.co.uk",80,false},
                                    infinity]}}

我是 erlang 的新手,我从上面唯一了解到的是某些 gen_server 模块已退出并出现一些错误。如何解决此错误?

【问题讨论】:

    标签: erlang


    【解决方案1】:

    我在freenode的erlang频道找到了答案。我需要在发出任何请求之前运行以下命令

    ssl:start().
    lhttpc:start().
    

    【讨论】:

      猜你喜欢
      • 2014-02-10
      • 2017-05-12
      • 2012-11-25
      • 2021-04-07
      • 1970-01-01
      • 2012-10-07
      • 2013-12-10
      • 2017-06-20
      • 2016-01-29
      相关资源
      最近更新 更多