且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用node-jira模块时出现身份验证错误401

更新时间:2022-02-07 15:30:54

我刚刚找到了jira api库的源并找到了错误消息. 显然,无法连接到jira"实际上意味着无法找到问题".

I just found the source to the jira api library and found the error message. Apparently "unable to connect to jira" actually means "unable to find issue".

    # Unable to find issue
    @jira.request.mostRecentCall.args[1] null, statusCode:401, null
    expect(@cb).toHaveBeenCalledWith(
        '401: Unable to connect to JIRA during findIssueStatus.')


https://github.com/steves/node-jira/blob/master/spec/jira.spec.coffee

好的,没关系. 我能够用curl击中jira api,发现我的403访问被拒绝. 似乎您的登录名必须打开jira api访问权限,所以很可能就是问题所在. 因此它可以连接,但是由于您的登录名无权访问,因此您将被踢出局.

okay, never mind that. I was able to hit the jira api with curl and found I was getting a 403 access denied. It would seem that your login has to have the jira api access turned on so probably that's what's wrong. So it is able to connect, but you're getting kicked out because your login has no access.