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

typhoeus ssl error #4

Open
technoweenie opened this issue Apr 22, 2019 · 0 comments
Open

typhoeus ssl error #4

technoweenie opened this issue Apr 22, 2019 · 0 comments

Comments

@technoweenie
Copy link
Owner

technoweenie commented Apr 22, 2019

  1) Faraday with unverified HTTPS server fails using typhoeus with verification enabled
     Failure/Error:
       expect do
         conn.get('unverified_with_verification')
       end.to raise_error(Faraday::SSLError)

       expected Faraday::SSLError, got #<NameError: uninitialized constant Faraday::Error::ConnectionFailed
       Did you mean?  Faraday::ConnectionFailed> with backtrace:
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/adapters/faraday.rb:106:in `block in request'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/callbacks.rb:146:in `block in execute_callbacks'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/callbacks.rb:145:in `each'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/callbacks.rb:145:in `execute_callbacks'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/operations.rb:35:in `finish'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/easy_factory.rb:164:in `block in set_callback'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/response_callbacks.rb:68:in `block in complete'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/response_callbacks.rb:68:in `each'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/response_callbacks.rb:68:in `complete'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/operations.rb:33:in `perform'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/operations.rb:16:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/cacheable.rb:18:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/block_connection.rb:31:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/stubbable.rb:25:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/before.rb:26:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/adapters/faraday.rb:82:in `perform_request'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/adapters/faraday.rb:72:in `call'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/request/url_encoded.rb:23:in `call'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/rack_builder.rb:153:in `build_response'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/connection.rb:504:in `run_request'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/connection.rb:207:in `get'
         # ./spec/insecure_spec.rb:21:in `block (4 levels) in <top (required)>'
         # ./spec/insecure_spec.rb:20:in `block (3 levels) in <top (required)>'
     # ./spec/insecure_spec.rb:20:in `block (3 levels) in <top (required)>'

Another one:

  1) typhoeus using HTTPS proxy with HTTPS server fails to connect
     Failure/Error: expect { conn.get 'foo' }.to raise_error(Faraday::ConnectionFailed)

       expected Faraday::ConnectionFailed, got #<NameError: uninitialized constant Faraday::Error::ConnectionFailed
       Did you mean?  Faraday::ConnectionFailed> with backtrace:
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/adapters/faraday.rb:106:in `block in request'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/callbacks.rb:146:in `block in execute_callbacks'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/callbacks.rb:145:in `each'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/callbacks.rb:145:in `execute_callbacks'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/operations.rb:35:in `finish'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/easy_factory.rb:164:in `block in set_callback'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/response_callbacks.rb:68:in `block in complete'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/response_callbacks.rb:68:in `each'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/response_callbacks.rb:68:in `complete'
         # /usr/local/bundle/gems/ethon-0.12.0/lib/ethon/easy/operations.rb:33:in `perform'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/operations.rb:16:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/cacheable.rb:18:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/block_connection.rb:31:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/stubbable.rb:25:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/request/before.rb:26:in `run'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/adapters/faraday.rb:82:in `perform_request'
         # /usr/local/bundle/gems/typhoeus-1.3.1/lib/typhoeus/adapters/faraday.rb:72:in `call'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/rack_builder.rb:153:in `build_response'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/connection.rb:504:in `run_request'
         # /usr/local/bundle/bundler/gems/faraday-be097190e962/lib/faraday/connection.rb:207:in `get'
         # ./spec/secure_spec.rb:30:in `block (4 levels) in <top (required)>'
         # ./spec/secure_spec.rb:30:in `block (3 levels) in <top (required)>'
     # ./spec/secure_spec.rb:30:in `block (3 levels) in <top (required)>'
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