typhoeus /法拉第适配器出错

时间:2013-03-26 05:18:36

标签: ruby-on-rails-3 faraday typhoeus

我的应用使用panda进行视频嵌入。我在config中创建了panda.rb初始化程序和panda.yml文件。我能够连接到熊猫(启动轨道控制台)。当我做Panda :: Profile.all时,我收到以下错误:

   1.8.7-p371 :001 > Panda::Profile.all
   Ethon::Errors::InvalidOption: The option: disable_ssl_peer_verification is invalid.
   Please try ssl_verifypeer instead of disable_ssl_peer_verification.
   from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon/easy.rb:255:in 
   `set_attributes'
   from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon/easy.rb:253:in 
   `each_pair'

根据为此错误建议的typhoeus的变化          https://github.com/typhoeus/typhoeus/issues/226#issuecomment-9919517

我在easy.rb中添加了需要'typhoeus / adapters / faraday'的行(home / vasu / .rvm / gems / ruby​​-1.8.7-p371 / gems / ethon-0.5.10 / easy.rb)< / p>

但是现在我收到以下错误,当我尝试执行rails c:

      /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/typhoeus-
      0.6.2/lib/typhoeus/adapters/faraday.rb:19: undefined method `supports_parallel=' 
      for Faraday::Adapter::Typhoeus:Class (NoMethodError)
      from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-.5.10/lib/ethon/easy.rb:11:in   
      `require'
  from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon/easy.rb:11
  from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon.rb:9:in 
      `require'

查看我的应用程序中的gem列表显示它正在使用以下内容:           ethon(0.5.10)           法拉第(0.7.6)           typhoeus(0.6.2)

我做错了什么?

1 个答案:

答案 0 :(得分:0)

将熊猫版本更改为“1.6.0”并将api_port 80添加到我的panda.yml之后,我就能够正常工作