eyeseast/propublica-congress

Had issue with http2

Closed this issue · 3 comments

FYI I'm using python2 and I had an issue querying propublica using your http2 query.

I get an error of:

SSLHandshakeError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)

I fixed the error by switching the querying method to urllib2. If other people are having the same issue as me happy to commit the change, otherwise if you've got a reason for using http2 that I'm not aware of we can keep it as is.

My main reason for httplib2 is because it comes with built-in caching, which is nice to have, especially since a lot of the data doesn't change often (and sometimes never, because it's historical).

Are you getting the error on every query, or something in particular?

Interesting. When I run it on travis-ci, py2.7 still works fine: https://travis-ci.org/eyeseast/propublica-congress/jobs/272304832/config

Could it be an issue with OpenSSL on your machine?