Hi, I was trying to access Jira in python and I tried to use PAT token for authentication but it failed.
Here is the error message
JIRAError: JiraError HTTP 401 url: https://jira.xxx.biz/rest/api/2/serverInfo text: Invalid IAP credentials: Unable to parse JWT response headers = {'Content-Length': '44', 'Content-Type': 'text/html; charset=UTF-8', 'X-Goog-IAP-Generated-Response': 'true', 'Date': 'Tue, 31 Jan 2023 11:56:10 GMT', 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"'} response text = Invalid IAP credentials: Unable to parse JWT
and my codes
jira = JIRA(options={'server': 'https://jira.xxx.biz'}, token_auth=token)
Hi,
Welcome to the community
Can you try this:
jira = JIRA(options={'server': "https://xxxx.com/",'token_auth':"mytoken"})
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.