kurozael / twitter-contest-bot

Will poll for Retweet Contests and retweet them. Inspired by http://www.hscott.net/twitter-contest-winning-as-a-service/
236 stars 107 forks source link

SNIMissingWarning Urllib3 error #14

Closed thermike closed 8 years ago

thermike commented 8 years ago

Getting the following error about TLS profiles with urlb3. Any fixes?

/usr/local/bin/twitter-contest-bot/venv/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:315: 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. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/bin/twitter-contest-bot/venv/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Traceback (most recent call last):
  File "main.py", line 242, in <module>
    CheckRateLimit()
  File "main.py", line 70, in CheckRateLimit
    for res_family in r['resources']:
KeyError: 'resources'