Google Groups Home
Help | Sign in
strange Errno::ECONNREFUSED, but works fine in Rails console
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Xin  
View profile
 More options May 8, 5:21 pm
From: Xin <crazyge...@gmail.com>
Date: Thu, 8 May 2008 14:21:22 -0700 (PDT)
Local: Thurs, May 8 2008 5:21 pm
Subject: strange Errno::ECONNREFUSED, but works fine in Rails console
I get this very strange connection refused error when run normally:

! CONNECT TO :0
Exception `Errno::ECONNREFUSED' at /usr/lib/ruby/gems/1.8/gems/
httpclient-2.1.2/lib/httpclient.rb:1497 - Connection refused -
connect(2)
Exception `Errno::ECONNREFUSED' at /usr/lib/ruby/gems/1.8/gems/
httpclient-2.1.2/lib/httpclient.rb:1506 - Connection refused -
connect(2) (://:0)
Exception `Errno::ECONNREFUSED' at /usr/lib/ruby/gems/1.8/gems/
httpclient-2.1.2/lib/httpclient.rb:935 - Connection refused -
connect(2) (://:0)
Exception `Errno::ECONNREFUSED' at /usr/lib/ruby/1.8/soap/
streamHandler.rb:252 - Connection refused - connect(2) (://:0)
/usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:1497:in
`initialize': Connection refused - connect(2) (://:0)
(Errno::ECONNREFUSED)
        from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:
1497:in `new'
        from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:
1497:in `create_socket'
        from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:
1455:in `connect'
        from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
        from /usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
        from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:
1454:in `connect'
        from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:
1311:in `query'
        from /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.2/lib/httpclient.rb:
932:in `query'
         ... 12 levels...
        from /home/xin/apps/goldminer1.5/vendor/plugins/amazon_ecs/lib/
AWSECommerceServiceClient.rb:150:in `retrieve_items'
        from /home/xin/apps/goldminer1.5/vendor/plugins/amazon_ecs/lib/
AWSECommerceServiceClient.rb:149:in `each'
        from /home/xin/apps/goldminer1.5/vendor/plugins/amazon_ecs/lib/
AWSECommerceServiceClient.rb:149:in `retrieve_items'
        from lib/jobs/fetch_amazon_items.rb:14

But when I run the same method in Rails console, everything is fine. I
am desperately trying to debug this.

Can anyone help at all?

Xin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google