Getting HTTPClient::ConnectTimeoutError while doing "server_version"

293 views
Skip to first unread message

Kapil Saxena

unread,
Feb 18, 2014, 9:23:33 AM2/18/14
to calaba...@googlegroups.com
Started calabash-ios console and then tried the following command: server_version 
but it resulted in error as detailed below:

irb(main):001:0> server_version
Retrying.. HTTPClient::ConnectTimeoutError: (execution expired)
Retrying.. HTTPClient::ConnectTimeoutError: (execution expired)
Failing... HTTPClient::ConnectTimeoutError
HTTPClient::ConnectTimeoutError: execution expired
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `initialize'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `new'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:803:in `create_socket'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:752:in `block in connect'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:751:in `connect'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:609:in `query'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient/session.rb:164:in `query'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient.rb:1083:in `do_get_block'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient.rb:887:in `block in do_request'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient.rb:981:in `protect_keep_alive_disconnected'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient.rb:886:in `do_request'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient.rb:774:in `request'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/httpclient-2.3.4.1/lib/httpclient.rb:677:in `get'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/http_helpers.rb:59:in `block in make_http_request'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/http_helpers.rb:46:in `times'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/http_helpers.rb:46:in `make_http_request'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/http_helpers.rb:24:in `http'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/connection_helpers.rb:8:in `http'
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/lib/calabash-cucumber/core.rb:58:in `server_version'
        from (irb):1
        from /Users/magic/.rvm/rubies/ruby-1.9.3-p484/bin/irb:12:in `<main>'

Can anybody help me in removing this error?

NOTE: 
1. I tried connecting my device using wifi and LAN (wired) both, but the end result is the error above.
2. I am on ios7 platform
3. I am trying to run few tests on physical device
4. When I do calabash-ios check PlainNote-cal.ipa, I see following:
sh-3.2# calabash-ios check PlainNote-cal.ipa
/Users/magic/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/calabash-cucumber-0.9.167/bin/calabash-ios-setup.rb:233: warning: Insecure world writable dir /Users/magic/.rvm/gems/ruby-1.9.3-p484/bin in PATH, mode 040777

----------Info----------
Ipa: PlainNote-cal.ipa *contains* calabash.framework
---------------------------






Jani Jegoroff

unread,
Feb 18, 2014, 10:05:15 AM2/18/14
to calaba...@googlegroups.com
calabash-ios console
start_test_server_in_background
server_version

Joshua Moody

unread,
Feb 21, 2014, 11:50:08 AM2/21/14
to calaba...@googlegroups.com
Kapil

We need details about your configuration.

Please paste the output of the following commands:

# xcode installation location
$ xcode-select --print-path

# xcode version
$ xcodebuild -version

# calabash version
$ calabash-ios version

# calabash.framework version
# start your app manually in the simulator or from Xcode
# and then launch a console
$ calabash-ios console
> server_version
Reply all
Reply to author
Forward
0 new messages