python repositorytools连接错误

python repositorytools连接错误,python,repository,python-requests,Python,Repository,Python Requests,我想在artifactory上放一个zip文件。我正在使用“repositorytools”软件包,我就是这样做的 try: local_path = os.path.join(os.getcwd(), "sample-0.1.0.zip") artifact = repositorytools.LocalArtifact(local_path=local_path, group='widgets', artifact='sample') client =

我想在artifactory上放一个zip文件。我正在使用“repositorytools”软件包,我就是这样做的

try:
    local_path = os.path.join(os.getcwd(), "sample-0.1.0.zip")

    artifact = repositorytools.LocalArtifact(local_path=local_path, 
    group='widgets', artifact='sample')

    client = repositorytools.repository_client_factory(user='user', 
    password='pw')

    remote_artifacts = client.upload_artifacts(local_artifacts=
    [artifact],repo_id='https://artifacts.zeki.com/zeki-development/')

    print(remote_artifacts)

except Exception as e:
    print colored(("Exception has occurred of type: {} with def: 
    {}".format(type(e), e)), 'red')
好吧,所有我得到这个恼人的错误

发生了以下类型的异常:with def:HTTPSConnectionPool(host='repository',port=443):url:/service/local/artifact/maven/content超过了最大重试次数(由NewConnectionError引起(':未能建立新连接:[Errno 8]提供了节点名或服务名,或未知'))

所以,我尝试了几种方法来克服,比如增加重试次数,但似乎没有任何效果。有什么想法吗


Thx

报告id
应仅为
'zeki-development'

您需要导出值为
https://artifacts.zeki.com
或更好地将该值传递给
存储库\u url
存储库\u客户端\u系数的参数

``

所以它可以是这样的:

client = repositorytools.repository_client_factory(repository_url='https://artifacts.zeki.com', user='user', password='pw')

repo\u id
应仅为
'zeki-development'

您需要导出值为
https://artifacts.zeki.com
或更好地将该值传递给
存储库\u url
存储库\u客户端\u系数的参数

``

所以它可以是这样的:

client = repositorytools.repository_client_factory(repository_url='https://artifacts.zeki.com', user='user', password='pw')

url本身呢?http与https?它在浏览器上工作。此外,我还有另一个脚本(用gradle编写),很好。请求包一定有问题。您的另一个脚本成功地使用您在上面共享的相同(https)url发出请求?url本身如何-http vs https?它在浏览器上工作。此外,我还有另一个脚本(用gradle编写),很好。请求包一定有问题。您的另一个脚本成功地使用上面共享的相同(https)url发出请求?