首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >typhoeus/faraday适配器出错

typhoeus/faraday适配器出错
EN

Stack Overflow用户
提问于 2013-03-26 13:18:36
回答 1查看 873关注 0票数 0

我的应用程序使用panda进行视频嵌入。我已经在配置中创建了panda.rb初始化器和panda.yml文件。我可以连接到panda (启动rails控制台)。当我执行Panda::Profile.all时,我得到以下错误:

代码语言:javascript
复制
   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 (home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/easy.rb)中添加了需要'typhoeus/adapters/faraday‘这一行

然而,现在当我尝试使用rails c:

代码语言:javascript
复制
      /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) faraday (0.7.6) typhoeus (0.6.2)

我做错了什么?

EN

回答 1

Stack Overflow用户

发布于 2013-03-26 19:07:15

在将panda版本更改为'1.6.0‘并将api_port 80添加到我的panda.yml之后,我能够让它正常工作

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15629887

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档