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

I use the rss/2.0 or simple-rss gems to locally access the feed
url-----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 the same
error still happens.

Hi, Refer to this post!

and you can download the pdf for reference :slight_smile:

On Tue, Mar 17, 2009 at 9:54 AM, daociyiyou [email protected]
wrote:

news’)

I have tried other rss feed url offered on site
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:

http://www.twincling.org/node/227

http://yourway2health.blogspot.com/
http://www.osef.twincling.org

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?

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?