Skip to content

403 using Jira datacenter and APIv2 #180

Description

@malkav30

Describe the bug
Authentication error (http 403) when using JiraTUI with Jira Datacenter

To Reproduce
Steps to reproduce the behavior:

  1. Go to your jira instance, click your avatar in the header to got to your profile, click Personal Access Tokesn, click Create token to issue a personal access token
  2. uv tool install jiruatui
  3. create config:
jira_api_username: "..."
jira_api_base_url: "https://jira...."
jira_api_token: "<PAT>"
jira_api_version: 2
  1. jiratui issues search -k MYISSUE
  2. See error:
Client error '403 Forbidden' for url
'https://jira..../rest/api/2/issue/MYISSUE?expand=editmeta&fields=id%2Ckey%2Cstatus%2Csummary%2Ccrea
ted%2Cupdated%2Cauthor%2Creporter%2Cissuetype%2Cassignee'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
Unable to retrieve the work item
An error occurred while trying to retrieve the work item.
                                                        Error Details
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Work Item Key ┃ Error                                                                                                     ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ TOARCHI-2420  │ Client error '403 Forbidden' for url                                                                      │
│               │ 'https://jira.../rest/api/2/issue/MYISSUE?expand=editmeta&fields=id%2Ckey%2Cst… │
│               │ For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403                  │
└───────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Expected behavior
See output w/ issue

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: WSL/Ubuntu 24.04
  • Browser: edge on Windows
  • Version: JiraTUI 1.6.2

Additional context
Same url works perfectly well using curl and Toke Bearer header
Jira Data-Center v10.3.18

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions