ozgur / python-firebase

Python interface to the Firebase's REST API
http://ozgur.github.com/python-firebase/
MIT License
593 stars 155 forks source link

SSL: CERTIFICATE_VERIFY_FAILED error on PUT request #63

Open amitbend opened 8 years ago

amitbend commented 8 years ago

Hi, I tried running this piece of code: (that used to work a month ago..)

frb = firebase.FirebaseApplication( 'https://myapp.firebaseio.com', authentication=None) result = frb.put('/latestdata/' ,name=somename, data=data)

and i get this SSL error every time! File "C:\Python27\lib\site-packages\firebase\firebase.py", line 68, in make_put_request timeout=timeout) File "C:\Python27\lib\site-packages\requests\sessions.py", line 521, in put return self.request('PUT', url, data=data, **kwargs) File "C:\Python27\lib\site-packages\requests\sessions.py", line 468, in request resp = self.send(prep, **send_kwargs) File "C:\Python27\lib\site-packages\requests\sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "C:\Python27\lib\site-packages\requests\adapters.py", line 447, in send raise SSLError(e, request=request) SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

Any Idea why it starts happening? when i open the url with Chrome, there is no problem with the certificate or whatsoever.

kidig commented 8 years ago

Duplicate #62