connection failed error

Discussion in 'Ruby' started by Mano ah, Nov 27, 2008.

  1. Mano ah

    Mano ah Guest

    I am getting the below error while i try to get response from API. What
    should I do to solve this

    c:/ruby/lib/ruby/1.8/net/http.rb:564:in `initialize': A connection
    attempt failed because the connected party did not properly respond
    after a period of time, or established connection failed because
    connected host has failed to respond. - connect(2) (Errno::ETIMEDOUT)
    from c:/ruby/lib/ruby/1.8/net/http.rb:564:in `open'
    from c:/ruby/lib/ruby/1.8/net/http.rb:564:in `connect'
    from c:/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout'
    from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout'
    from c:/ruby/lib/ruby/1.8/net/http.rb:564:in `connect'
    from c:/ruby/lib/ruby/1.8/net/http.rb:557:in `do_start'
    from c:/ruby/lib/ruby/1.8/net/http.rb:546:in `start'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:243:in `open_http'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:617:in `buffer_open'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:162:in `catch'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:519:in `open'
    from c:/ruby/lib/ruby/1.8/open-uri.rb:30:in `open'
    from wishpot.rb:19:in `create_urlrequest'
    from wishpot.rb:50
    --
    Posted via http://www.ruby-forum.com/.
     
    Mano ah, Nov 27, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    42,078
    Roedy Green
    Nov 16, 2005
  2. sck10
    Replies:
    6
    Views:
    1,270
    sck10
    Sep 1, 2006
  3. CFTK
    Replies:
    5
    Views:
    709
  4. johnny
    Replies:
    1
    Views:
    923
    Jerry Hill
    Dec 8, 2006
  5. =?Utf-8?B?cGF0cmlja2RyZA==?=

    Internal connection fatal error and other random db connection err

    =?Utf-8?B?cGF0cmlja2RyZA==?=, Jun 14, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    693
    =?Utf-8?B?cGF0cmlja2RyZA==?=
    Jun 14, 2007
  6. kiran
    Replies:
    5
    Views:
    4,071
  7. Tony Johansson
    Replies:
    3
    Views:
    17,207
    Patrice
    Jan 2, 2010
  8. Albert-Jan Roskam
    Replies:
    2
    Views:
    355
    Chris Angelico
    Nov 25, 2013
Loading...