betty stops working on internet
Closed this issue · 1 comments
Hello to all.
since a couple of days I got an error in betty, when I ask betty how are you ? then comes this
aturnwald@aturnwald-X75VB:~$ betty how are you
Asking the internet...
SSL_connect returned=1 errno=0 state=error: certificate verify failed
ing: error querying web service SSL_connect returned=1 errno=0 state=error: certificate verify failed
or, when I ask :
aturnwald@aturnwald-X75VB:~$ betty show me the city of london
Asking the internet...
SSL_connect returned=1 errno=0 state=error: certificate verify failed
ing: error querying web service SSL_connect returned=1 errno=0 state=error: certificate verify failed
So, please help me, because I find betty very funny and my child’s like it two, so what must I do
thanxxx a lot cu Toni
By the way, to all who have the same problems with betty and UBUNTU 16.04, here is the solution, thanx to seahawk.
Also in the file ~/betty/main.rb edit the following lins to :
where - is the old one
and + is that that should be insert
Line 171
@@ -171,7 +171,7 @@ end
edit ~/.bettyconfig or say 'use web'
example: "betty what is the weather"
def web_query(command)
- require 'net/http'
- require 'net/https'
encoded = URI.escape(command)
chatmode = BettyConfig.get("chat")
Line 193
@@ -193,7 +193,7 @@ def web_query(command)
begin
puts "Asking the internet..." if not chatmode
puts "Thinking..." if chatmode
- res = Net::HTTP.start(url.host, url.port, :use_ssl => true, :read_timeout => 5) {|https|
- res = Net::HTTP.start(url.host, url.port, :use_ssl => true, :read_timeout => 5, :verify_mode => OpenSSL::SSL::VERIFY_NONE) {|https|
https.request(req)
}
answer=res.body
so, that's all and betty would work as well.
cheerio Toni