Python - SSL Issue with Oauth2

前端 未结 6 1023
醉话见心
醉话见心 2020-12-14 03:41

I seem to be having an issue with SSL whenever trying to use oAuth2 in Python. I\'ve spent most of the afternoon attempting to debug it but can\'t seem to figure it out.

6条回答
  •  星月不相逢
    2020-12-14 04:09

    I was having the same error on my system (OSX Yosemite) which had an old version of Python 2.7 installed (2.7.1).

    I upgraded Python to 2.7.10 which solved the problem.

    https://www.python.org/downloads/release/python-2710/

    The clue was in the following warning message which I saw while I was experimenting with different solutions:

    "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"

提交回复
热议问题