Forum: Ruby on Rails about rss read error---no address associated with hostname

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
669c735cf55efa005140fa232b05c4f6?d=identicon&s=25 daociyiyou (Guest)
on 2009-03-17 08:55
(Received via mailing list)
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.
B6d7dffed1196ab1a2ac35504a0cb03c?d=identicon&s=25 Sumanth Krishna (sumi)
on 2009-03-17 08:58
(Received via mailing list)
Hi,  Refer to this post!
http://sumanthtechsavvy.blogspot.com/2008/08/ror-c...
and you can download the pdf for reference :)

On Tue, Mar 17, 2009 at 9:54 AM, daociyiyou <cheyu22@yahoo.com.cn>
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://sumanthtechsavvy.blogspot.com/
         http://www.twincling.org/node/227

http://yourway2health.blogspot.com/
           http://www.osef.twincling.org
669c735cf55efa005140fa232b05c4f6?d=identicon&s=25 daociyiyou (Guest)
on 2009-03-17 09:27
(Received via mailing list)
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?
669c735cf55efa005140fa232b05c4f6?d=identicon&s=25 daociyiyou (Guest)
on 2009-03-17 16:17
(Received via mailing list)
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?
This topic is locked and can not be replied to.