Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

betty stops working on internet #172

Closed
Aturnwald opened this issue Apr 12, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@Aturnwald
Copy link

commented Apr 12, 2016

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

@Aturnwald

This comment has been minimized.

Copy link
Author

commented Apr 12, 2016

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

@Aturnwald Aturnwald closed this Apr 12, 2016

@Aturnwald Aturnwald changed the title betty didn't work on the internet, at all, please help betty stops working on internet Apr 12, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.