Unable to connect to JIRA using REST API Postman

Deleted user December 6, 2022

I am getting Forbidden (403) error while  fetching an existing issue details using Postman

URL : https://itas-jira.XX.XX.XX/rest/api/2/issue/777

Basic Authentication with Username and Token

 

1 answer

0 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 6, 2022

Hi @[deleted] ,

welcome to the Atlassian Community!

According to URL you have server / DC version of Jira, so you need to use  password instead of token.

Deleted user December 11, 2022

Hi Hana,

 

I tried both and still getting same 403 forbidden error. Please find more details below.

URL Postman & web Login : https://itas-jira.XXXCompanyXX.polygran.de/rest/api/2/issue/<Issue ID>

Username :  Used profile summary username mentioned in cloud login

Password Attempt 1 : Company Login password 

Password Attempt 2:  Personal access Token

Proxy : Using system

JIRA : v8.20.10

Deleted user December 11, 2022

Postman.png

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 11, 2022

Hi @[deleted] ,

thank you - this is obviously server / DC Jira, but you are mentioning cloud login. 

Username :  Used profile summary username mentioned in cloud login

Please, what is cloud login for you?

If you are able to log in to this Jira using username and password (using UI), the exact same credentials you will use in Postman for REST API.

Deleted user December 12, 2022

Thank you Hana,

Cloud login I mentioned as the web UI login password which I am using,which is again a organization specific one which I am collectively using for all applications.

Could be an issue with my credentials. But I am able to login to Web UI successfully with same username and password. I tried to change the password but as there are more than 50 failed attempts of login (Probably from my postman hits) it is not allowing me to change the password. How can I reset my password with these many failed login hits from postman!

I just wanted to try again with the new credentials.

 

Jira_Password.png

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2022

@[deleted] I believe log out and log in should do the trick.

Deleted user December 20, 2022

Hi Hana,

 

I tried to logout and relogin still I am getting the same error.

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 22, 2022

Hi @[deleted] ,

is it possible to contact your Jira admin and ask him to help you with reset of failed login attempts and set a new password?

Deleted user December 26, 2022

Hi Hana,

 

Also I was trying to connect using REST API JAVA client to JIRA and I am getting below exception. Can you please help

 

HttpResponse<JsonNode> response = Unirest.get("https://itas-jira.xxx.polygran.de/rest/api/2/issue/<Num>")
.basicAuth("username", "Token")
.header("Accept", "application/json")
.asJson();

 

 com.mashape.unirest.http.exceptions.UnirestException: java.lang.RuntimeException: java.lang.RuntimeException: org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:143)
at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 26, 2022

@[deleted] I think the response is not formatted as JSON. Can you please find out, how does the response look like? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events