python client : SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

192 views
Skip to first unread message

Jean-François Lefebvre

unread,
Oct 3, 2013, 5:47:05 PM10/3/13
to mobile-vikin...@googlegroups.com
Hello,

I've installed the python client just to try ... and receive an SSL error as you can see below.
Is it a known issue ?
I've already succeeded to use the client but it was a lot of time ago.
I've developed an PHP client for the mobile vikings API but have to check if it stills work.
And yes, xauth is already activated on my account but I'm not already there.

osxbox:mvoauthapi root# python call.py -x sim_balance
Traceback (most recent call last):
  File "call.py", line 210, in <module>
    options.http_method, options.use_xauth)
  File "call.py", line 144, in call_mv_api
    response, content = api.call(http_method, method, params)
  File "/Users/jeff/Downloads/code/librairies/mvoauthapi/mvoauthapi/client.py", line 210, in call
    return self._request(url, method, body, headers)
  File "/Users/jeff/Downloads/code/librairies/mvoauthapi/mvoauthapi/client.py", line 83, in _request
    response, content = self.client.request(*args, **kwargs)
  File "build/bdist.macosx-10.8-x86_64/egg/oauth2/__init__.py", line 682, in request
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg/httplib2/__init__.py", line 1570, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg/httplib2/__init__.py", line 1317, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg/httplib2/__init__.py", line 1252, in _conn_request
    conn.connect()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/httplib2-0.8-py2.6.egg/httplib2/__init__.py", line 1044, in connect
    raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [Errno 1] _ssl.c:491: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Koen Vossen

unread,
Oct 4, 2013, 4:29:10 AM10/4/13
to mobile-vikin...@googlegroups.com
Hi Jean-François,

As a quick workaround you can try using version 0.7.2 of httplib2,
that one works for me.

Hope this helps,

Koen Vossen
Developer at Mobile Vikings | http://mobilevikings.com
> --
> You received this message because you are subscribed to the Google Groups
> "Mobile Vikings API users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mobile-vikings-api...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Jean-François Lefebvre

unread,
Oct 11, 2013, 9:21:31 AM10/11/13
to mobile-vikin...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages