Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Server Rest API 401 error Edited

I am using this documentation: https://docs.atlassian.com/software/jira/docs/api/REST/8.14.1/#auth/1/session-login

 

I am using basic auth (I also tried token based auth since I read that basic auth might be depreciated but it didn't specifically say for the server api)

 

Authorization: Basic encodedBase64String of username:password

 

I do not get a normal error message rather a bunch of HTML. This is the beginning:

 

function printDeprecatedMsg() { if (console && console.warn) { console.warn('DEPRECATED JS - contextPath global variable has been deprecated since 7.4.0. Use `wrm/context-path` module instead.'); } }

 

I am using for the url: https://jira.myCompanyName.com/rest/api/2/permissions

and doing a GET request in this example

 

Can someone help me get the server REST API working properly?

 

 

1 answer

hi @Blake Mitchell , welcome on the community. Can you describe how do you access the REST API? From browser, Java, JS code...?

Hello - currently, I am using Postman to do it and will be using Kotlin moving forward after that. Do you have any suggestions

 

Thank you

Blake

Can you share screenshot of the postman configurations?

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you