pickhardt / betty

Friendly English-like interface for your command line. Don't remember a command? Ask Betty.
2.61k stars 215 forks source link

Betty does not work with internet #174

Closed likeadragonmaid closed 8 years ago

likeadragonmaid commented 8 years ago

When I try asking betty for a question, it just says Asking the internet... SSL_connect returned=1 errno=0 state=error: certificate verify failed Betty: error querying web service SSL_connect returned=1 errno=0 state=error: certificate verify failed screenshot_20160726_190158

insajd commented 8 years ago

Solution found on http://www.webupd8.org/2014/05/betty-is-like-siri-or-google-now-for.html

To fix it, you'll need to apply a patch. You can do this using the following commands (which assume you've extracted Betty in the "betty" folder in your home directory):

cd ~/betty
wget https://raw.githubusercontent.com/hotice/webupd8/master/betty-ssl-fix.patch
patch -p1 < betty-ssl-fix.patch
michielboekhoff commented 8 years ago

@insajd That's a bit of an ugly workaround. Problem is, you're turning off TLS verification. This is a problem with the external webservice used by Betty: ask.pannous.com. Its TLS certificate expired a while ago, and Betty is right to complain about it. Maybe the best solution would be to find an alternative to Pannous?

michielboekhoff commented 8 years ago

See also #173.

likeadragonmaid commented 8 years ago

This patch works great.