拉力1。rallydev.com网站无法访问或不支持WSAPI

2024-03-29 11:00:23 发布

您现在位置:Python中文网/ 问答频道 /正文

想用皮拉尔与拉力赛对接。还支持吗?我的apikey出现以下错误。我能振作起来。ralldev.com网站,但似乎WSAPI不受支持或不工作。你知道吗

获取以下错误 pyral.context.rallyrestapieror错误:404目标主机:1。rallydev.com网站'不可访问或不支持WSAPI

使用python3.7和最新版本的pyral,安装pip Python 3.7.3(v3.7.3:ef4ec6ed12,2019年3月25日,21:26:53)[MSC v.1916 32位 (英特尔)在win32上 键入“help”、“copyright”、“credits”或“license”以获取更多信息。你知道吗

import pyral pyral.version (1, 4, 2)

python -c "import requests; 
print(requests.get('https://www.howsmyssl.com/a/check', verify=False).json() 
  ['tls_version'])"
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
 InsecureRequestWarning)
TLS 1.2

python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.1.0j  20 Nov 2018

def main(args):
    options = [opt for opt in args if opt.startswith('--')]
    args    = [arg for arg in args if arg not in options]
    server, user, password, apikey, workspace, project=rallyWorkset(options)
    print(" ".join(["|%s|" % item for item in [server, user, password, apikey[:8], workspace, project]]))

    # If you wantto use API Key, you can use the following form 
    rally = Rally(server, apikey=apikey, workspace=workspace, project=project)

pyral.context.RallyRESTAPIError: 404 Target host: 'rally1.rallydev.com ' is either not reachable or doesn't support the Rally WSAPI

Tags: inimportprojectcomsslis错误args