Closed ChaiBapchya closed 4 years ago
Sorry, library can't fix your connectivity problems.
@lechat This issue was actually resolved by adding timeout=120 and max_retries = 30 which is only possible in master branch (not the pypi released binary version)
Would be great to have latest master pushed out to the public via PyPi binary
~Is there a plan to release a 0.3.12
with the latest changes from master
to PyPI?~
It looks like there is a release 0.3.12
planned: https://github.com/pycontribs/jenkinsapi/issues/774
Is this is going to be fixed? Will there be timeout args handling in next update on pypi ?
Hi,
I am facing intermittent issue of read timeout while calling the sendmail functionality through jenkinsapi from a code running inside a docker container to a remote jenkins.. Sometime it works and sometime it give the timeout error. I tried increasing the timeout but did not help and facing still the same intermittent issue
This jenkins is same that runs the pipeline on remote docker host where it creates the container and run the code. Below is the error details , any help would be appreciated.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 451, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 340, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jenkins/.local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/jenkins/work_arear/workspace/abc/project_release_delivery_cli.py", line 472, in
This is not necessarily a connectivity issue. On a complex Jenkins instance, pulling up the api/python
page on a job can take more than 10 seconds.
For example we have a job that uses the Git Parameter plugin and has to scan all the source branches for the api/python
data that routinely takes 20 seconds to load.
It would be very nice to at least expose the timeout value to the end user.
Hi, I'm the original author. I'm not actively maintaining this project anymore. If you can show me a tested PR then I will consider a merge. That's as long as @lechat approves.
As no one has mentioned it here before: The timeout can actually (at least now) be set when creating the Jenkins object. Ex: J = Jenkins(url, user_id, api_token, timeout=180)
ISSUE TYPE
Jenkinsapi VERSION 03.11
Jenkins VERSION 2.204.2
SUMMARY
JenkinsAPI call fails with max retries exceeded with URL issue command
EXPECTED RESULTS
Return all the jobs without max retry error
ACTUAL RESULTS
result (after reading several jobs)
USEFUL INFORMATION
To reproduce
Example code
Stacktrace