拉力赛 Python API [英] Rally Python API

查看:36
本文介绍了拉力赛 Python API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照 http://developer.rallydev.com/help/python-toolkit-rally-rest-api

但是,我遇到了以下错误.

However, I am running into the following error.

回溯(最近一次调用最后一次):文件test_prog.py",第 12 行,在集会=集会(服务器,用户,密码,工作区=工作区,项目=项目)文件C:\Python27\lib\site-packages\pyral\restapi.py",第 184 行,在初始化self.contextHelper.check(self.server) 文件C:\Python27\lib\site-packages\pyral\context.py",第 153 行,在检查中引发 RallyRESTAPIError(problem) pyral.context.RallyRESTAPIError: hostname: 'https://rally1.rallydev.com/slm/login.op' 不存在或无法访问

Traceback (most recent call last): File "test_prog.py", line 12, in rally = Rally(server, user, password, workspace=workspace, project=project) File "C:\Python27\lib\site-packages\pyral\restapi.py", line 184, in init self.contextHelper.check(self.server) File "C:\Python27\lib\site-packages\pyral\context.py", line 153, in check raise RallyRESTAPIError(problem) pyral.context.RallyRESTAPIError: hostname: 'https://rally1.rallydev.com/slm/login.op ' non-existent or unreachable

有谁知道是否有任何订阅设置可以使用 pyral Rally REST API 控制/限制对它的访问?

Does anyone know if there are any subscription settings that would control/restrict access to it using the pyral Rally REST API?

我在 Windows 7 平台上使用 Python 2.7 使用带有请求 0.9.3 和证书 0.0.8 的 pyral 0.9.1.

I am using pyral 0.9.1 with requests 0.9.3 and certifi 0.0.8 using Python 2.7 on a Windows 7 platform.

非常感谢任何帮助/见解.谢谢,

Any help/insight is highly appreciated. Thanks,

推荐答案

您是否通过代理服务器访问 Internet?您可能希望就此咨询您的 IT 部门.

Do you access the internet through a proxy server? You may wish to check with your IT department about this.

不幸的是,请求和 urllib 包(pyral 依赖)在通过 HTTPS 处理 HTTP 方面存在一些限制.

Unfortunately, there are some limitations in the requests and urllib packages (upon which pyral relies) handle HTTP over HTTPS.

请求包机制没有正确支持基于 HTTP 的 HTTPS,这正是代理连接到 Rally 必须做的事情,因为所有 URL 都是基于 HTTPS 的.requests 包的维护者知道这种情况,并且目前正在评估是否包含底层依赖项 (urllib3) 的代码修复.

The requests package machinery does not correctly support HTTPS over HTTP which is exactly what a proxy must do to connect to Rally since all URLs are HTTPS based. The maintainers of the the requests package are aware of this situation and there are code fixes for the underlying dependency (urllib3) that are currently being evaluated for inclusion.

当请求包包含正确支持代理的代码时,Rally 的开发人员计划包含该代码,并将提供配置步骤(设置环境变量),以便 pyral 在代理环境中工作.

When the requests package incorporates the code to support proxy correctly, Rally's developers plan to incorporate that code and will provide the configuration step (setting an environment variable) for pyral to work in a proxied environment.

这篇关于拉力赛 Python API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆