Failed to allocate ssl context

352 views
Skip to first unread message

ANOOP M.S

unread,
Dec 15, 2016, 9:21:09 AM12/15/16
to python-social-auth
hi all,

i am using social auth(google login) for my project. it was working perfectly two days before i am getting an error  "SSLError: ('failed to allocate SSL context',)"  anyone knows why this error raising ?

Trackback.

  File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 135, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", line 2102, in step2_exchange
    headers=headers)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 1487, in request
    self.disable_ssl_certificate_validation)
  File "/usr/local/lib/python2.7/dist-packages/httplib2/__init__.py", line 944, in __init__
    cert_file=cert_file, strict=strict)
  File "/usr/lib/python2.7/httplib.py", line 1234, in __init__
    context = ssl._create_default_https_context()
  File "/usr/lib/python2.7/ssl.py", line 393, in create_default_context
    context = SSLContext(PROTOCOL_SSLv23)
  File "/usr/lib/python2.7/ssl.py", line 334, in __new__
    self = _SSLContext.__new__(cls, protocol)

Thanks in advance. 

Matías Aguirre

unread,
Dec 19, 2016, 8:52:16 AM12/19/16
to ANOOP M.S, python-social-auth
I haven't experienced this so far, what versions of Python and Openssl are installed in your system?
--

ANOOP M.S

unread,
Dec 19, 2016, 9:15:02 AM12/19/16
to Matías Aguirre, python-social-auth
hii thanks for the reply,
it was not there till last week. Right now sometimes i am getting this error when i am calling an external link.I don't know why am i not getting this error always.
python version is 2.7.9
openssl = 1.0.1k
thanks
--
Feel free to contact 


Regards,

Anoop MS


Eldhose P Varghese

unread,
Aug 5, 2017, 3:25:36 AM8/5/17
to python-social-auth, matias...@gmail.com

am also getting same problem when ever my google auth client calls https link this error comes ;


  File "/home/ubuntu/vir_env/python2713/lib/python2.7/site-packages/oauth2client/transport.py", line 282, in request
    connection_type=connection_type)
  File "/home/ubuntu/vir_env/python2713/lib/python2.7/site-packages/httplib2/__init__.py", line 1537, in request
    ssl_version=self.ssl_version)
  File "/home/ubuntu/vir_env/python2713/lib/python2.7/site-packages/httplib2/__init__.py", line 975, in __init__
    cert_file=cert_file, strict=strict)
  File "/usr/local/lib/python2.7.13/lib/python2.7/httplib.py", line 1247, in __init__
    context = ssl._create_default_https_context()
  File "/usr/local/lib/python2.7.13/lib/python2.7/ssl.py", line 421, in create_default_context
    context = SSLContext(PROTOCOL_TLS)
  File "/usr/local/lib/python2.7.13/lib/python2.7/ssl.py", line 347, in __new__
    self = _SSLContext.__new__(cls, protocol)
SSLError: ('failed to allocate SSL context',)

Can somebody help ? ??
Reply all
Reply to author
Forward
0 new messages