shoes gem是否支持HTTPS请求?

时间:2017-11-13 22:38:26

标签: ruby shoes shoes-4

我一直在研究如何使用Shoes GUI构建器发出HTTPS请求,我收到SSL_connnect连接错误,我不确定该怎么办。

我在此Gist

中制作了一个测试应用

这是错误:

SSL_connect returned=1 errno=0 state=error: certificate verify failed
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/net/http.rb:923:in `connect'
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/net/http.rb:923:in `block in connect'
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/timeout.rb:73:in `timeout'
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/net/http.rb:923:in `connect'
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/net/http.rb:863:in `do_start'
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/net/http.rb:852:in `start'
/Applications/Shoes.app/Contents/MacOS/lib/ruby/2.2.0/net/http.rb:1375:in `request'
shoes.rb:17:in `request'
shoes.rb:54:in `block (3 levels) in <main>'
-e:1:in `call'

1 个答案:

答案 0 :(得分:1)

我明白了。更新剥离令牌并将verify_mode设置为 <application android:name="[.path].DemoApp" ..... 的请求修复了问题。

OpenSSL::SSL::VERIFY_NONE