Forums

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

Getting a Unauthorized (401) error - on Jira CreateRestClient

Gajendra Paliwal June 19, 2019

Hi,

Today we are getting "Unauthorized (401) error" when we call "CreateRestClient " to connect jira from our code, I have checked same credentials on browser and it is working fine.

Also it was working earlier but now it gives error. below is error details:-

Method Name:- jira.GetIssuePriorities()

"<title>Unauthorized (401)</title>

<!--[if IE]><![endif]-->
<script type="text/javascript" >
var contextPath = '';
var DeferScripts = { deferState: 'disabled' };
</script>
<script>"

Please do the needful. 

1 answer

0 votes
Aleksandr Zuevich
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.
June 19, 2019

Hi,

Possibly your issue relates to this one: https://community.atlassian.com/t5/Questions/JIRA-Rest-API-authentication-always-returns-401-unauthorized/qaq-p/1110047

Maybe the library that you use for connecting to Jira isn't updated to use API tokens or you use authorization based on credentials.

Gajendra Paliwal June 19, 2019

Thanks, now it is working fine!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events