Erlang/OTP Forums

Author Message

<  Erlang  ~  Error during http:request

sacharya
Posted: Tue Sep 23, 2008 2:37 am Reply with quote
Joined: 06 Jun 2008 Posts: 3
I am just trying to do a HTTP GET on a URL:

$http:request(get, {"http://www.msn.com", []}, [], []).

And I receive the following error. Any idea whats wrong? I am using R12B-2 on Mac OSX.
Thanks.

** exception exit: {noproc,{gen_server,call,
[httpc_manager,
{request,{request,undefined,<0.33.0>,0,http,
{"www.msn.com",80},
"/",[],get,
{http_request_h,undefined,"keep-alive",undefined,undefined,
undefined,undefined,undefined,undefined,undefined,...},
{[],[]},
{http_options,"HTTP/1.1",infinity,true,[],undefined,false},
"http://www.msn.com",[],none,[]}},
infinity]}}
in function gen_server:call/3
in call from http:handle_request/6
View user's profile Send private message
Mazen
Posted: Tue Sep 23, 2008 8:10 am Reply with quote
User Joined: 20 Jul 2006 Posts: 164 Location: London
Hi Sacharya,

you need to start inets application first.

Code:

application:start(inets).


When ever you see an error that says "noproc" it means that something wasn't started.

/Mazen
View user's profile Send private message
sacharya
Posted: Tue Sep 23, 2008 5:15 pm Reply with quote
Joined: 06 Jun 2008 Posts: 3
Thanks Mazen,
That works. I had gone through the docs quite a number of times, but somehow I always seemed to ignore the instructions for starting inet.
I am sorry for being so stupid.
View user's profile Send private message
wuji
Posted: Tue Aug 14, 2012 7:28 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
for information leading to the capture of Miguel Angel and and cheap polo ralph lauren and Omar.The brothers, whose numeric aliases refer to their alleged
within the Zetas at the time of the cartel's creation creation [h4]jordan 6[/h4] creation several years ago, are now allegedly top leaders of
organization that controls drug trafficking in the east and south south [h4]cheap jordans[/h4] south of Mexico. Miguel, or "40," allegedly runs the Zetas
with "3," Heriberto Lazcano.The Zetas began in 1999 when former former jordan 6 former members of the Mexican military signed on to work
security for the Gulf drug cartel. The Zetas went into into knockoff designer *beep* into business for themselves and are now at war with
View user's profile Send private message
dongdongwu
Posted: Thu Sep 20, 2012 5:26 am Reply with quote
User Joined: 19 Sep 2012 Posts: 236
His good friend Diane said: "Christian Louboutin Men Shoes was a magician, he make shoes is immediately put his female people with legs and advantage. He understands women wanted to do and can make them into beautiful Cinderella." Madonna often in its concert wearing Christian louboutin high heels , and some famous superstar like Angelina jolie, mariah Carey, beyonce Knowles, the famous Japanese singer YaYouMei Hamasaki helps Christian Louboutin Men Shoes set up its powerful position. The youngest customers will count Tom cruise's daughter sully cruz. Louboutin made for only a pair of handmade Christian Louboutin high heel Shoes! Want to be more fashion? Put on Christian Louboutin Outlet !
Candy colors of the chalaza high-heeled shoes with lolita type allure, set full finely gem blue "neon shoes" is to need to use "sexy" to describe. Each pair are worth careful appreciation of lithe and graceful fairy ludaoli, what kind of most let you move?Christian Louboutin Men Shoes that one brush red is always cannot resist the temptation, Christian Louboutin men outlet continue to use the days of high 8cm above slender heel proclaim the sexy and luxuriant. The bowknot on black pointed high-heeled shoes with sharp rivet concomitant, wild python met enchanting color printing grain, It is that pairs of high-heeled shoes lets Carrie more feminine flavour. Like Christian Louboutin for men her word.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum