thibaultponcelet / ovh_savoni

Super simple OVH SoAPI wrapper
Other
3 stars 3 forks source link

Cannot connect #3

Closed morgoth closed 12 years ago

morgoth commented 12 years ago

I wanted to try out your gem, unfortunately error is thrown when authenticating:

1.9.3-p194 :004 > savoni = OvhSavoni::SoAPI.new(:nichandle=> "my-nick-handle", :password=> "my-password")
OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=unknown state
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient/session.rb:300:in `connect'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient/session.rb:300:in `ssl_connect'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient/session.rb:744:in `block in connect'
    from /home/wojtek/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:68:in `timeout'
    from /home/wojtek/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient/session.rb:736:in `connect'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient/session.rb:594:in `query'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient/session.rb:161:in `query'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient.rb:1060:in `do_get_block'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient.rb:869:in `block in do_request'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient.rb:956:in `protect_keep_alive_disconnected'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient.rb:868:in `do_request'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient.rb:756:in `request'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpclient-2.2.5/lib/httpclient.rb:666:in `post'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpi-1.1.1/lib/httpi/adapter/httpclient.rb:32:in `block in post'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpi-1.1.1/lib/httpi/adapter/httpclient.rb:64:in `do_request'
... 1 levels...
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpi-1.1.1/lib/httpi.rb:96:in `block in post'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpi-1.1.1/lib/httpi.rb:193:in `with_adapter'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/httpi-1.1.1/lib/httpi.rb:94:in `post'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/soap/request.rb:34:in `block (2 levels) in response'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/soap/request.rb:66:in `with_logging'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/soap/request.rb:34:in `block in response'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/hooks/group.rb:42:in `call'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/hooks/group.rb:42:in `fire'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/soap/request.rb:34:in `response'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/savon-1.1.0/lib/savon/client.rb:84:in `request'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/ovh_savoni-1.44.0/lib/ovh_savoni/soapi.rb:55:in `request'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/ovh_savoni-1.44.0/lib/ovh_savoni/soapi.rb:20:in `block (2 levels) in <class:SoAPI>'
    from /home/wojtek/.rvm/gems/ruby-1.9.3-p194/gems/ovh_savoni-1.44.0/lib/ovh_savoni/soapi.rb:37:in `initialize'
    from (irb):4:in `new'
    from (irb):4
    from /home/wojtek/.rvm/rubies/ruby-1.9.3-p194/bin/irb:16:in 
thibaultponcelet commented 12 years ago

Hi, This is probably due to an incompatibility with the SSL version on your computer. To solve this please try:

$ rvm remove 1.9.3
$ rvm pkg install openssl
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr

Then rebuild your gemset.