Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出错? InsecurePlatformWarning #135

Closed
hejunhui opened this issue Mar 21, 2015 · 3 comments
Closed

出错? InsecurePlatformWarning #135

hejunhui opened this issue Mar 21, 2015 · 3 comments

Comments

@hejunhui
Copy link

bypy list

Token file: '/root/.bypy/bypy.json'
Hash Cache file: '/root/.bypy/bypy.pickle'
App root path at Baidu Yun '/apps/bypy'
sys.stdin.encoding = UTF-8
sys.stdout.encoding = UTF-8

sys.stderr.encoding = UTF-8

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:79: 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
/apps/bypy ($t $f $s $m $d):

@houtianze
Copy link
Owner

https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning

看这个文档,貌似这个是最新版的urllib3引起的,解决方案有两个:

  • 升级Python2到最新版本(2.7.9或以上)
    或:
  • 运行时加上--disable-ssl-check参数,禁用ssl检查。

看来又得升级下异常处理代码了。

@houtianze
Copy link
Owner

改了一下,暂时强制禁用ssl检查。(临时方案)

@houtianze
Copy link
Owner

最新版强制requests 2.10或以上,这个问题应该已经解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants