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

SYSCALL returned=5 when migrating from ruby 2.2.1 to 2.2.6 or 2.4.1 (Mac Os) #262

Open
bwl21 opened this issue Jul 1, 2017 · 0 comments

Comments

@bwl21
Copy link

bwl21 commented Jul 1, 2017

I tried to migrate a script retrieveing calendars from Exchange from ruby 2.2.1 to 2.2.6 or even 2.4.1 and got the messages below.

/Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:103:in `connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError)

The script works fine in 2.2.1. this is how I setup the EWSClient:

cli = Viewpoint::EWSClient.new(
   endpoint, user, pass,
   http_opts: {ssl_verify_mode: 0},
   :server_version => Viewpoint::EWS::SOAP::ExchangeWebService::VERSION_2007_SP1
                               )

What can I do?

bundle install says

Using bundler 1.9.4
Using httpclient 2.8.3
Using little-plugger 1.1.4
Using logging 2.2.2
Using mail 2.6.4
Using mime-types 3.0
Using mime-types-data 3.2016.0221
Using mini_portile2 2.2.0
Using multi_json 1.12.1
Using nokogiri 1.8.0
Using pdf-core 0.2.5
Using prawn 1.0.0
Using prawn_calendar 0.0.1
Using rubyntlm 0.6.2
Using ttfunk 1.1.1
Using viewpoint 1.1.0

This is the traceback

/Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:103:in `connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError)
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:103:in `ssl_connect'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:41:in `initialize'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:26:in `new'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/ssl_socket.rb:26:in `create_socket'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:752:in `block in connect'
        from /Users/calret/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'
        from /Users/calret/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/timeout.rb:98:in `call'
        from /Users/calret/.rvm/rubies/ruby-2.2.6/lib/ruby/2.2.0/timeout.rb:98:in `timeout'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:748:in `connect'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:511:in `query'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient.rb:856:in `request'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/httpclient-2.8.3/lib/httpclient.rb:765:in `post'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/viewpoint-1.1.0/lib/ews/connection.rb:103:in `post'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/viewpoint-1.1.0/lib/ews/connection.rb:81:in `dispatch'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/viewpoint-1.1.0/lib/ews/soap/exchange_web_service.rb:212:in `do_soap_request'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/viewpoint-1.1.0/lib/ews/soap/exchange_data_services.rb:503:in `find_folder'
        from /Users/calret/.rvm/gems/ruby-2.2.6/gems/viewpoint-1.1.0/lib/ews/folder_accessors.rb:45:in `folders'
        from exchange_reader.rb:57:in `<main>'

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