0

我已经在我的服务器中安装了 ujson 和 jira 包。

我想在开始时使用 python 从 jira 获取详细信息

代码:

from jira import JIRA

jira = JIRA('https://jira.corp.xyz.com') (comment)
jac = JIRA(server='https://jira.corp.xyz.com', basic_auth=('user_name', 'password'))
issue = jac.issue('DWO-19743')

print(issue)
print(issue.fields.description)

但是得到错误

WARNING:root:HTTPSConnectionPool(host='jira.corp.xyz.com', port=443): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)) while doing GET https://jira.corp.xyz.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.18.4', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}, 'params': None}]
WARNING:root:Got ConnectionError [HTTPSConnectionPool(host='jira.corp.xyz.com', port=443): Max  Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),))] errno:None on GET https://jira.corp.xyz.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
WARNING:root:Got recoverable error from GET https://jira.corp.xyz.com/rest/api/2/serverInfo, will retry [2/3] in 35.0706056104s. Err: HTTPSConnectionPool(host='jira.corp.xyz.com', port=443): Max retries exceeded with url: /rest/api/2/serverInfo (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),))

怎么了?

4

0 回答 0