• Community
  • Products
  • Jira Software
  • 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 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-
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 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