Unable to login jira through python script getting Error:401

Swathi Pathuri January 11, 2021

getting this error :

WARNING:root:Got recoverable error from GET https://jira.silabs.com/rest/api/2/serverInfo, will retry [1/3] in 1.833719650596921s. Err: 401

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2021

The error means the account you are using does not have the right to see the results of the call.  It might be that they're not authenticated, or it might be the internal permissions (I have a feeling serverinfo requires admin access to see)

Swathi Pathuri January 12, 2021

Am able to login to https://siliconlabs.atlassian.net/    

But getting the above error for https://jira.silabs.com/   with same credentials with python script.

 

But with same credentials am able to login manually through browser.

Can you please suggest me how i can resolve this issue.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2021

Those are two different systems so "same credentials" is irrelevant.

You'll need to check that the account on silabs has the right permission to log in and look at the server info.

Like Roma Bubyakin likes this
Swathi Pathuri January 12, 2021

How can i generate token ID for https://jira.silabs.com/   

Swathi Pathuri January 12, 2021

Manually am able to login with my credentials .But through python rest API s am unable to login.

Swathi Pathuri January 12, 2021

Can i use python jira rest API s for logging into https://jira.silabs.com/

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2021

Yes, you can, the same way you use all the other REST APIs, and you get the token in the same way you do for the others.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events