我已使用以下示例 python 代码尝试连接到我们项目的 JIRA 实例。
options = {
'server': 'http://172.16.48.15:8080'
}
jira = JIRA(options=options, basic_auth=('<username>', '<password>'))
(我没有附加其余代码,因为在尝试创建 JIRA 实例时出现问题)“用户名”和“密码”与我用来从浏览器访问 JIRA 相同。执行上述代码后,我收到以下错误:
....The requested resource (/rest/api/2/serverInfo) is not available.....
http://172.16.48.15:8080/rest/api/2/serverInfo
Process finished with exit code 1
谁能告诉我我犯了什么错误?我有权使用我的凭据访问此服务器。我可以使用浏览器连接到 JIRA。任何帮助将不胜感激。
谢谢 MH