首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >假错误"pyral.context.RallyRESTAPIError: SSL证书验证失败“

假错误"pyral.context.RallyRESTAPIError: SSL证书验证失败“
EN

Stack Overflow用户
提问于 2016-04-19 07:29:49
回答 2查看 861关注 0票数 3

尝试使用pyral 1.1.1和ActivePython 2.7.10.12通过Web Services API v2.0访问rally1.rallydev.com (ActiveState软件公司)从公司的文件墙后面。我收到错误消息“pyral.context.RallyRESTAPIError: SSL证书验证失败”

代码语言:javascript
复制
Using Code with ssl: 

    rally = Rally(server, user, password, workspace=workspace, project=project)

Receive:

Traceback (most recent call last):
  File "C:\Users\QvaleL\Documents\Eclipse Workspace\Extract Rally Data\PullRallyUS - Working.py", line 26, in <module>
    rally = Rally(server, user, password, workspace=workspace, project=project)
  File "C:\Python27\lib\site-packages\pyral\restapi.py", line 228, in __init__
    self.contextHelper.check(self.server)
  File "C:\Python27\lib\site-packages\pyral\context.py", line 216, in check
    raise RallyRESTAPIError(problem)
pyral.context.RallyRESTAPIError: SSL certificate verification failed



Using Code to turn off SSL:

 rally = Rally(server, user, password, workspace=workspace, project=project, verify_ssl_cert=False)

Receive:

C:\Python27\lib\site-packages\requests\packages\urllib3\connectionpool.py:791: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
404 Response for request
('Connection aborted.', BadStatusLine("''",))

Traceback (most recent call last):
  File "C:\Users\QvaleL\Documents\Eclipse Workspace\Extract Rally Data\PullRallyUS - Working.py", line 25, in <module>
    rally = Rally(server, user, password, workspace=workspace, project=project, verify_ssl_cert=False)
  File "C:\Python27\lib\site-packages\pyral\restapi.py", line 228, in __init__
    self.contextHelper.check(self.server)
  File "C:\Python27\lib\site-packages\pyral\context.py", line 216, in check
    raise RallyRESTAPIError(problem)
pyral.context.RallyRESTAPIError: 404 Target host: 'rally1.rallydev.com' doesn't support the Rally WSAPI

已安装的Python包

代码语言:javascript
复制
c:\>pip list
   certifi (2016.2.28)
   pip (8.1.1)
   pypm (1.4.3)
   pyral (1.1.1)
   pythonselect (1.3)
   pywin32 (218.3)
   requests (2.9.1)
   setuptools (5.2)
   virtualenv (1.11.6)
EN

回答 2

Stack Overflow用户

发布于 2016-04-21 01:29:38

解决方案是在您的环境中或通过https_proxy=your程序导出环境变量Python proxy-server:port。要从Python程序中导出,请对https proxy-server_IP:port使用以下命令语法:

代码语言:javascript
复制
os.environ['https_proxy'] = '100.100.101.200:8080'
票数 1
EN

Stack Overflow用户

发布于 2018-04-16 01:44:05

我也有类似的问题,我们的网络团队已经通过了一些Rally站点的检查,并且它起作用了。已通过SSL验证。

这可能对你没有帮助,但这是我解决问题的方法,因为没有其他解决方案对我有效。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36706002

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档