# Net::HTTP error -- getaddrinfo: nodename nor servname provid

**URL:** <https://www.ruby-forum.com/t/net-http-error-getaddrinfo-nodename-nor-servname-provid/186489>\
**Category:** Ruby\
**Created:** [April 7, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/net-http-error-getaddrinfo-nodename-nor-servname-provid/186489 "2010-04-07T22:58:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![biot023](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@biot023](https://www.ruby-forum.com/u/biot023)\
**Post date:** [April 7, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/net-http-error-getaddrinfo-nodename-nor-servname-provid/186489/1 "2010-04-07T22:58:04Z")

</div>

Hi – I have an app that exists, is running on ssl, & is running happily  
on Heroku.  
I’ve exposed a web service on it that is called by this code:

> <https://gist.github.com/biot023/359437>

As far as I can tell, everything is absolutely correct (although I’ve  
been at this for _hours_, so may be missing something obvious), but I’m  
still getting the following error from the last line when I try to run  
it: “getaddrinfo: nodename nor servname provided, or not known”  
And here is a stack trace for completeness’ sake:

> <https://gist.github.com/biot023/359444>

Any advice anyone can offer would be _very_ gratefully received!  
Cheers,  
Doug.
