richard-better / pushbullet.py

A python client for http://pushbullet.com
MIT License
575 stars 110 forks source link

requests.exceptions.SSLError #125

Closed JeffWScott closed 6 years ago

JeffWScott commented 6 years ago

all I have is this code: from pushbullet import Pushbullet pb = Pushbullet('oNOTMYREALAPICODEAiZ4F')

and it's enought to generate this error: requests.exceptions.SSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocol

kovacsbalu commented 6 years ago

Hi @JeffWScott , did you see #112 ?

JeffWScott commented 6 years ago

Thanks for the reply i will give that a shot.

JeffWScott commented 6 years ago

I updated both (openssl was the latest) and now i get this.

/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings SNIMissingWarning /usr/local/lib/python2.7/dist-packages/urllib3/util/ssl.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Traceback (most recent call last): File "notification.py", line 8, in devices = p.getDevices()

JeffWScott commented 6 years ago

I just want to add I appreciate any help, I'm not great at this stuff, but I need this to work :)

kovacsbalu commented 6 years ago

You can disable this warning as described on the url: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

JeffWScott commented 6 years ago

Looks like that site is telling me to update python to 2.7.9. I have 2.7.6.

JeffWScott commented 6 years ago

Installed 2.7.14. Works perfectly now.

Thanks so much!