401 unauthorised error.

kanad_kumar October 14, 2024

 

jira-DC-Error.png

 

We are trying to get some data  from this API endpoint   
https://jira.cs-app-test-12.cs-aws.cucumber.io/rest/agile/1.0/board?projectKeyOrId=AANES

while calling this API endpoint form backed we are facing some issues [refer to the attachment ]

This is our JIRA DATA CENTER APP [still in the testing phase].

Can you please help me to understand this issue and fix it?
If you need any further details please let us know.
 
FYI: We already have one app hosted in the marketplace.

"https://kumarkanad642.atlassian.net/jira/marketplace/discover/app/hiptest.jira-plugin

2 answers

2 accepted

2 votes
Answer accepted
Dick
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.
October 14, 2024

Hi @kanad_kumar, welcome to the Atlassian Community

From the error I deduce you're not authenticated when firing the request. The API only gives answers to legitimate calls. The authenticated user permissions also apply to the results you're seeing (you only see tickets that the account you're using may see from within Jira).

Hope you'll get your second app working soon

Dick

By voting for helpful posts and marking answers to your question, you're helping people with similar questions find a solution more quickly. Sharing is caring applies to knowledge as well :)

 

0 votes
Answer accepted
Radek Dostál
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.
October 14, 2024

And you didn't bother asking google first for "401 response code"?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401

 

The HTTP 401 Unauthorized client error response status code indicates that a request was not successful because it lacks valid authentication credentials for the requested resource.

 

I think it stands to reason that everybody would ask the same question - where are the credentials?

kanad_kumar October 14, 2024

We are able to fix that by passing a barrier token in the request header. 

Suggest an answer

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

Atlassian Community Events