Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to access through Pyhthon to connection to JIRA

Mani Venkata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2018

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?

 

 

 

 

 

2 answers

0 votes
Gonchik Tsymzhitov
Community Champion
September 16, 2018

Hi Mani, 

 

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

0 votes
Wouter Bruinings
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events