[英]JenkinAPI error with server.get_jobs "max retries exceeded with url"
From the beginning of the new year, i cannot extract jobs info from my Jenkins, using the classic example that can be found here: https://jenkinsapi.readthedocs.io/en/latest/using_jenkinsapi.html#example-2-get-details-of-jobs-running-on-jenkins-server .从新的一年开始,我无法使用可以在此处找到的经典示例从我的 Jenkins 中提取工作信息: https ://jenkinsapi.readthedocs.io/en/latest/using_jenkinsapi.html#example-2-get -在詹金斯服务器上运行的作业详情。 In replace of them, i get the following error:代替它们,我收到以下错误:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=, port=): Max retries exceeded with url: /job/<JOB_NAME>/api/python?tree=allBuilds%5Bnumber%2Curl%5D (Caused by ReadTimeoutError("HTTPSConnectionPool(host=, port=): Read timed out. (read timeout=10)")) requests.exceptions.ConnectionError: HTTPSConnectionPool(host=, port=): 最大重试次数超过 url: /job/<JOB_NAME>/api/python?tree=allBuilds%5Bnumber%2Curl%5D(由 ReadTimeoutError("HTTPSConnectionPool(host =, port=): 读取超时。(读取超时=10)"))
Thanks for any advice.感谢您的任何建议。
You will get this error if the host you are connecting to is not available.如果您要连接的主机不可用,您将收到此错误。
I would suggest trying a few network tests to ensure the host is visible: where:我建议尝试一些网络测试以确保主机可见:其中:
ReadTimeoutError("HTTPSConnectionPool(host='myhost.something.com', port=1234) ReadTimeoutError("HTTPSConnectionPool(host='myhost.something.com', port=1234)
try netcat or tracepath:尝试 netcat 或跟踪路径:
-> nc -w 5 -vz myhost.something.com 1234 -> nc -w 5 -vz myhost.something.com 1234
Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat:版本 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 10.11.12.13:1234. Ncat:连接到 10.11.12.13:1234。
Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds. Ncat:发送 0 个字节,在 0.01 秒内接收到 0 个字节。
-> tracepath -p 33434 myhost.something.com -> tracepath -p 33434 myhost.something.com
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.