我想在其JIRA中使用其python模块提供的其他API功能。 下面是代码:JIRA未连接到服务器python [python2.7]
from jira import JIRA
options = {
'server': 'https://jira.internal.server',
'verify': 'false'
}
jira = JIRA(options, basic_auth=('usernXXXX', 'PassXXXX'))
我收到错误之后:
WARNING:root:[Errno 2] No such file or directory while doing GET
https://jira.internal.server/rest/api/2/serverInfo [{u'headers': {'Accept-
Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-
Agent': 'python-requests/2.13.0', 'Connection': 'keep-alive', u'X-Atlassian-
Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type':
u'application/json'}, 'params': None}]
能有人在这里帮忙
2017-04-01
Rebbeca
+0
您是否尝试仅使用服务器字符串作为第一个参数而不是选项字典? –
+0
是的,它没有工作,JIRA中的文档也显示了相同的格式来传递参数作为字典 –