You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quick way to test it is with no Internet connection:
import os
import logging
from redminelib import Redmine
from redminelib.exceptions import BaseRedmineError
from requests.exceptions import RequestException
URL = os.getenv("URL", "https://progress.opensuse.org")
USER = os.getenv("USER", "test")
API_KEY = "MYAPIKEY"
try:
client = Redmine(URL, username=USER, key=API_KEY)
client.issue.get(777)
except (BaseRedmineError, RequestException) as exc:
logging.error("%s", exc)
ERROR:root:HTTPSConnectionPool(host='progress.opensuse.org', port=443): Max retries exceeded with url: /issues/777.json?key=MYAPIKEY (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7fa218b31450>: Failed to resolve 'progress.opensuse.org' ([Errno -3] Temporary failure in name resolution)"))
The only workaround is to catch requests.exceptions.ConnectionError.
Activity
ricardobranco777 commentedon Sep 26, 2023
Tracking in https://bugzilla.suse.com/show_bug.cgi?id=1215722
Update python-python-redmine to version 2.4.0 / rev 7 via SR 1114261
maxtepkeev commentedon Mar 3, 2024
Fixed in #328. Thanks.