jenkins 服务器JenkinAPI错误,get_jobs“URL超过最大重试次数”

kmb7vmvb  于 2022-12-22  发布在  Jenkins
关注(0)|答案(1)|浏览(249)

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. 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)"))
谢谢你的建议。

5hcedyr0

5hcedyr01#

如果要连接的主机不可用,则会出现此错误。
我建议尝试一些网络测试以确保主机可见:其中:
读取超时错误("HTTP连接池(主机='myhost.something.com',端口= 1234)
尝试netcat或tracepath:
-> nc -w 5 -vz myhost.something.com 1234
Ncat:版本7.50(https://nmap.org/ncat
网络目录号:连接到10.11.12.13:1234。
ncat:0字节发送,0字节在0. 01秒内接收。
-> tracepath -p 33434 myhost.something.com

相关问题