Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Urrlib3/Requests: HTTPS problems on Google App Engine

Hi I am trying to make an HTTPS connection using requests on App Engine but I get the following error

NameError: name 'CERT_NONE' is not defined

It seems that urrlib3 cannot import ssl. Any ideas?

Update: The problem is that ssl on App Engine is missing the following

from ssl import wrap_socket, CERT_NONE, SSLError
like image 420
PanosJee Avatar asked Nov 12 '22 15:11

PanosJee


1 Answers

This problem was fixed by t-8ch as you can see on this call https://github.com/shazow/urllib3/pull/130 at urllib3 github repository.

They have not done the merge to master branch yet, but you can get the available package from the fixed branch of t-8ch here: https://github.com/t-8ch/urllib3/tree/unify_ssl_api

I have tested and this is working well.

like image 149
maxcnunes Avatar answered Nov 15 '22 06:11

maxcnunes