首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >正在使用JiraRobot库,但无法在机器人框架中连接Jira

正在使用JiraRobot库,但无法在机器人框架中连接Jira
EN

Stack Overflow用户
提问于 2020-11-05 11:28:53
回答 2查看 112关注 0票数 0

我试着用下面的代码连接Jira

代码语言:javascript
复制
*** Settings ***
Library         JiraRobot
       
*** Test Cases *** 
Test_Connect_Jira
   Connect To Jira    ${UserID}  ${Pass}  options= {'server':'${ServerName}'}
   Log    Get Current User

我弄错了

代码语言:javascript
复制
    [ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.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}]
[ WARN ] Got ConnectionError [('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))] errno:None on GET https://jira.xxx.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
[ WARN ] Got recoverable error from GET https://jira.xxx.com/rest/api/2/serverInfo, will retry [1/3] in 0.531449693973s. Err: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
[ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.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}]
[ WARN ] Got ConnectionError [('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))] errno:None on GET https://jira.xxx.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
[ WARN ] Got recoverable error from GET https://jira.xxx.com/rest/api/2/serverInfo, will retry [2/3] in 3.70011506578s. Err: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
[ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.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}]
[ WARN ] Got ConnectionError [('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))] errno:None on GET https://jira.xxx.com/rest/api/2/serverInfo
{'request': <PreparedRequest [GET]>, 'response': None}\{'request': <PreparedRequest [GET]>, 'response': None}
[ WARN ] Got recoverable error from GET https://jira.xxx.com/rest/api/2/serverInfo, will retry [3/3] in 50.5519016195s. Err: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
[ WARN ] ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host')) while doing GET https://jira.xxx.com/rest/api/2/serverInfo [{u'headers': {'Accept-Encoding': 'gzip, deflate', u'Accept': u'application/json,*.*;q=0.9', 'User-Agent': 'python-requests/2.24.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}]
[ ERROR ] Execution stopped by user.

Authentication to JIRA unsuccessful. Ensure the user used has sufficient access and that Username and Password were correct


Process finished with exit code 253

但我实际上是通过这些用户名和密码手动登录的。

有经验的人请帮帮我。

EN

Stack Overflow用户

发布于 2020-12-24 01:55:33

我现在可以使用API令牌而不是密码来连接Jira。

票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64690810

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档