Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown when server doesn't answer #13

Closed
ghost opened this issue Mar 14, 2011 · 2 comments
Closed

Exception thrown when server doesn't answer #13

ghost opened this issue Mar 14, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 14, 2011

I got an exception thrown when checking this (old) link (where the server doesn't answer):
http://www.lcia-arbitration.com/

The error:

/Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:581:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:581:in `open'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:581:in `block in connect'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/timeout.rb:82:in `timeout'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:581:in `connect'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:574:in `do_start'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:563:in `start'
        from /Users/andy/.rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/net/http.rb:1094:in `request'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/request.rb:28:in `perform_request'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/request.rb:8:in `get'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:38:in `add_status_code'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:32:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:33:in `validate_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:24:in `block in validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `each'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:23:in `validate_links_in_page'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/lib/rawler/base.rb:17:in `validate'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/gems/rawler-0.0.7/bin/rawler:33:in `<top (required)>'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/bin/rawler:19:in `load'
        from /Users/andy/.rvm/gems/ruby-1.9.1-p378%cur/bin/rawler:19:in `<main>'
@oscardelben
Copy link
Owner

Thanks, I'll take a look at this and your next issue asap.

@oscardelben
Copy link
Owner

Hi, I've added a rescue clause for SocketError. Thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant