问题
When I run following in erlang shell
lhttpc:request("http://www.google.co.uk", get, [], infinity).
I get this error
** exception exit: {noproc,{gen_server,call,
[lhttpc_manager,
{socket,<0.44.0>,"www.google.co.uk",80,false},
infinity]}}
I'm a completely new to erlang and only thing I understand from the above is that some gen_server module has exited with some error. How do I fix this error?
回答1:
I found the answer on the erlang channel of freenode. I need to run following commands before issuing any requests
ssl:start().
lhttpc:start().
来源:https://stackoverflow.com/questions/14553112/error-while-using-lhttpc-from-erlang-shell