My DevOps API is here. User stories and tasks are created in one DevOps using data from another. The function to retrieve data will be below. However, recently we were instructed to install an SSL certificate, and as a result, only the company's VPN is now available for access to devops. As a result, such a mistake exists right now. I have no idea where to go.
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='devops.xregernd.local', port=443): Max retries exceeded with url: /Support/Maergt/_apis/wit/workitems/$User%20Story?api-version=5.1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)')))
def GetUSInfo(id_):
url_get_m = f'http://devops.xpa123re.com:8181/support/Mat/_apis/wit/workitems/{id_}?api-version=5.1'
r = requests.get(url_get_m,
auth=(user_name_x, token_x))
res = r.json()
workType = res['fields']['System.WorkItemType']
if workType != "User Story":
return False, False, False, "Not a User Story"
id_ = res['id']
title = res['fields']['System.Title']
description = res['fields']['System.Description']
return id_, title, description, "OK"