Then I definitely need some bedtime! Thanks very much for that -- I'll get sorting it out first thing! Cheers, Doug.
On 7 April 2010 23:31, Caius Durling <[email protected]> wrote: > On 7 Apr 2010, at 21:58, doug livesey wrote: > > I've exposed a web service on it that is called by this code: > http://gist.github.com/359437 > > > The host and port are the wrong way round in the Net::HTTP.new call[1]. > > So because a string with no numbers in it will return 0 when to_i is called > on it, you're attempting to open a connection to default host (I assume > localhost), port 0. Which then causes an underlying library to bubble the > getaddrinfo error up. > > 1: > http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html#M000663 > > HTH, > > C > --- > Caius Durling > [email protected] > +44 (0) 7960 268 100 > http://caius.name/ > > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nwrug-members%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=en. > -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en.
