当我尝试使用Python2.7和JIRA REST API (http://jira-python.readthedocs.org/en/latest/)连接到JIRA时,我目前遇到了一个错误。
当我执行以下命令时:
from jira.client import JIRA
options = {
'server': 'https://jira.companyname.com'
}
jira = JIRA(options)我在控制台看到以下错误信息:
requests.exceptions.SSLError: [Errno 1] _ssl.c:507: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed是否有我可能遗漏或操作不正确的地方?
谢谢!
发布于 2014-06-18 01:37:42
我遇到了一个类似的SSL证书验证错误,在查看"JIRA“方法定义时,可能会关闭验证。
:param options: Specify the server and properties this client will use. Use a dict with any
of the following properties:
* server -- the server address and context path to use. Defaults to ``http://localhost:2990/jira``.
* rest_path -- the root REST path to use. Defaults to ``api``, where the JIRA REST resources live.
* rest_api_version -- the version of the REST resources under rest_path to use. Defaults to ``2``.
* verify -- Verify SSL certs. Defaults to ``True``.
* resilient -- If it should just retry recoverable errors. Defaults to `False`.试试这个:
from jira.client import JIRA
options = {'server': 'https://jira.companyname.com','verify':False}
jira = JIRA(options)发布于 2021-06-03 14:10:24
只需安装python-certifi-win32模块,这应该可以帮助您克服这些错误,而不会有任何麻烦
https://stackoverflow.com/questions/23961956
复制相似问题