Как я могу исправить SNIMissingWarning? - PullRequest
0 голосов
/ 28 февраля 2019

Я использую OSX и Python 2.7.15:

$ python --version
Python 2.7.15

Тем не менее, когда я запускаю один из .py сценариев, я получаю эту ошибку:

/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:354: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server 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

И яверю 2.7.15 это одна из последних версий Python 2.

Как я могу это исправить?

...