I need to call third party API in my rails app. I decide to use open-uri (but also tried the NET::HTTP.get and gives me the same error), and to this:
open("http://www.example.org") do |f| puts f.base_uri #=> http://www.example.org puts f.status #=> ["200", "OK"] end But it gives me: getaddrinfo: Name or service not known I can't come up with a solution -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81d95d332c11cbc913865a54c84fd371%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.