Hi Community,
While trying to authenticate into JIRA server using python library for interacting with JIRA via REST APIs, I get the following error:
WARNING:root:Got recoverable error from GET https://corporate.domain.com/rest/api/2/serverInfo, will retry [1/3] in 8.16608003441684s. Err: HTTPSConnectionPool(host='jerry.wincor-nixdorf.com', port=443): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))
WARNING:root:HTTPSConnectionPool(host='corporate.domain.com', port=443): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))) while doing GET https://corporate.domain.com/rest/api/2/serverInfo [{'params': None, 'headers': {'User-Agent': 'python-requests/2.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json,*.*;q=0.9', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json', 'X-Atlassian-Token': 'no-check'}}]
OS: Windows 10;
python: 3.8.0
JIRA (Jira-python library package): 3.0.a2
Please also suggest whether the rest api endpoint used is correct!
PS: I sit behind a corporate network
For future reference here's a rough code outline for how I solved this... - reference to the link provided by @Gonchik Tsymzhitov above shows all the parameter options and it will work for any product
You can put a verify ssl false flag.
https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/rest_client.py#L45
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to resolve this error WITHOUT disabling ssl verification?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.