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 error / The option: disable_ssl_peer_verification is invalid #22

Closed
skwp opened this issue May 4, 2014 · 5 comments
Closed

Comments

@skwp
Copy link

skwp commented May 4, 2014

Anyone seeing this? During index create, chewy is complaining:
Ethon::Errors::InvalidOption: The option: disable_ssl_peer_verification is invalid.
Please try ssl_verifypeer instead of disable_ssl_peer_verification.

from /Users/yan/.rvm/gems/ruby-2.1.1@reverb/gems/typhoeus-0.6.8/lib/typhoeus/hydra/runnable.rb:17:in `block in run'
    from /Users/yan/.rvm/gems/ruby-2.1.1@reverb/gems/chewy-0.4.1/lib/chewy/index/actions.rb:61:in `create!'

Seems like some option it's passing to typhoeus? Maybe I have a different version than it expects?

@skwp
Copy link
Author

skwp commented May 4, 2014

Based on this issue typhoeus/typhoeus#270
This seems to fix it:

require 'typhoeus/adapters/faraday'

@skwp skwp closed this as completed May 4, 2014
@jondavidford
Copy link
Contributor

I was also seeing this, and I added the require 'typhoeus/adapters/faraday' line. All my tests pass fine locally, but on Travis I am getting this error for every test that previously had the Ethon::Errors::InvalidOption: The option: disable_ssl_peer_verification is invalid. error:

Faraday::TimeoutError:
       request timed out

Any idea what could be going on?

@pyromaniac
Copy link
Contributor

Is ES even started on travis? Check out chewy's travis.yml

@darkness51
Copy link

@skwp Could you explain where you import the typhoeus faraday adapter please?

@skwp
Copy link
Author

skwp commented Jan 12, 2015

I required it in my index file, but I assume it should work if required in an initializer. That would probably be cleaner

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

4 participants