I am trying to access to API and not able to connect
from jira import JIRA options = {'server': 'https://jsd.wce.ibm.com/projects/RCA/queues/custom/244'} jira = JIRA(options, basic_auth=('xxxx', 'yyyyyy')) #jira = JIRA('https://jira.atlassian.com')issue = jira.issue('RCA-78')print(issue.fields.project.key)//print(issue.fields.issuetype.name)//print(issue.fields.reporter.displayName)
I am getting the below issue.
Here i am getting the 401 error. WARNING:root:Got recoverable error from GET https://jira.atlassian.com/rest/api/2/serverInfo, will retry [1/3] in 17.422087888173944s. Err: 401.
Can someone help me out to get fixed on this?
Hi Mani,
401 usually points to an authentication error. Please make sure you are using a user that is authorized to request data regarding the specific rest endpoint.
Kind regards,
Wouter
you problem is related SSO on https://w3id.sso.ibm.com/auth/sps/samlidp
Let's generate OAuth token or ask your administrators how to do it.
Cheers,
Gonchik Tsymzhitov
It looks like you're new here. Sign in or register to get started.