Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Products
  • Jira
  • Questions
  • Hi, while making a post call to create an issue in JIRA, I get an error ‘The remote server returned an error: (401) Unauthorized’. I am using basic authorization. Please let me know how to resolve this issue.

Hi, while making a post call to create an issue in JIRA, I get an error ‘The remote server returned an error: (401) Unauthorized’. I am using basic authorization. Please let me know how to resolve this issue.

Automation Group
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!
December 27, 2015
 

2 answers

0 votes
rrudnicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 28, 2015

Hi Balaji, 

What happens when you try to run this curl?

curl -D- -u username:password -X GET -H "Content-Type: application/json" "https://<your-jira-uril>/rest/api/2/project"

If you still face issues, may you paste the call which you are getting 401?

 

Regards, 
Renato Rudnicki 

0 votes
Nic Brough -Adaptavist-
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.
December 27, 2015

Whatever you mean by "post call", it's not logged in as a user who has the rights to create the issues, so you need to fix your call so that it logs in correctly.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events