python foursquare - SSL3 certificate verify failed
Posted
by
user1814277
on Stack Overflow
See other posts from Stack Overflow
or by user1814277
Published on 2012-11-10T10:39:21Z
Indexed on
2012/11/10
11:00 UTC
Read the original article
Hit count: 356
I'm trying to make a userless request to the Foursquare API using Mike Lewis' Python wrapper - https://github.com/mLewisLogic/foursquare:
client = foursquare.Foursquare(client_id=Client_ID, client_secret=Client_Secret)
categs = client.venues.categories()
Intermittently, I get a "Error connecting to Foursquare API" msg. Running a logger to catch a more detailed message produces:
"SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"
This didn't use to happen and occurs both on my local Windows development machine and on a server running ubuntu. Am I missing something basic here about security certificates? The problem is intermittent and sometimes just leaving it a minute and retrying fixes the problem temporarily.
I've downloaded the latest 20120716 version of the wrapper although in the code for init.py it still says API_VERSION = '20120608'. I'm using Python 2.73 and have also signed up for the Foursquare API key, using the id and secret in the above code. I listed the urls, using my local IP:8000 and tried using separate keys for the local and dev machines but this seems to make no difference.
Help much appreciated. Thanks.
© Stack Overflow or respective owner