# About rss read error---no address associated with hostname

**URL:** <https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085>\
**Category:** Rails\
**Created:** [March 17, 2009, 8:55am UTC](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085 "2009-03-17T08:55:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [March 17, 2009, 8:55am UTC](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085/1 "2009-03-17T08:55:00Z")

</div>

I use the rss/2.0 or simple-rss gems to locally access the feed  
url-----[http://sports.espn.go.com](http://sports.espn.go.com) /espn/rss/news.The code is like  
following:  
####################  
require ‘rubygems’  
require ‘simple-rss’  
require ‘open-uri’

```
rss = SimpleRSS.parse open('http://sports.espn.go.com /espn/rss/

```

news’)  
puts(“—Channel—#{rss.channel.title}”)  
################

But when i run the code locally,it appear an error:

################  
no address associated with hostname  
###################

I have tried other rss feed url offered on site  
[http://sports.espn.go.com/espn/news/story?page=rssinfo,but](http://sports.espn.go.com/espn/news/story?page=rssinfo,but) the same  
error still happens.

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [March 17, 2009, 8:58am UTC](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085/2 "2009-03-17T08:58:30Z")

</div>

Hi, Refer to this post!

> **[RoR course: RSS Maker/Parser](http://sumanthtechsavvy.blogspot.com/2008/08/ror-course-rss-makerparser.html)**
>
> Download the pdf View on Scribd I would like to share the details of how Ruby supports to generate and read the RSS. Before goi...

and you can download the pdf for reference 🙂

On Tue, Mar 17, 2009 at 9:54 AM, daociyiyou [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> news’)
> 
> I have tried other rss feed url offered on site  
> [http://sports.espn.go.com/espn/news/story?page=rssinfo,but](http://sports.espn.go.com/espn/news/story?page=rssinfo,but) the same  
> error still happens.
> 
> >

## –

Thanks & Regards,  
Sumanth Krishna. A  
+358 40 3276564

Blogs:  
TwinclingCommunity:

> **[TechSavvy](http://sumanthtechsavvy.blogspot.com/)**
>
> Technical Blog

[http://www.twincling.org/node/227](http://www.twincling.org/node/227)

[http://yourway2health.blogspot.com/](http://yourway2health.blogspot.com/)  
[http://www.osef.twincling.org](http://www.osef.twincling.org)

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [March 17, 2009, 9:27am UTC](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085/3 "2009-03-17T09:27:47Z")

</div>

thank you! Perhaps i should require all the rss related library.But is  
it because i run the app locally instead of on the server?

---

<div class="post-metadata">

**Author:** ![daociyiyou](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Post date:** [March 17, 2009, 4:17pm UTC](https://www.ruby-forum.com/t/about-rss-read-error-no-address-associated-with-hostname/163085/4 "2009-03-17T16:17:57Z")

</div>

I still get the following error:  
############  
SocketError in My rssController#index  
getaddrinfo: no address associated with hostname.  
###############  
I have shut down the fire wall when running the app locally.  
can you help me?
