我的应用程序使用panda进行视频嵌入。我已经在配置中创建了panda.rb初始化器和panda.yml文件。我可以连接到panda (启动rails控制台)。当我执行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 (home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/easy.rb)中添加了需要'typhoeus/adapters/faraday‘这一行
然而,现在当我尝试使用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) faraday (0.7.6) typhoeus (0.6.2)
我做错了什么?
发布于 2013-03-26 19:07:15
在将panda版本更改为'1.6.0‘并将api_port 80添加到我的panda.yml之后,我能够让它正常工作
https://stackoverflow.com/questions/15629887
复制相似问题