The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get authentication details

Keerthana Shivakumar
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!
March 7, 2024

I've created a JiraRestClient object and did basic authentication, to use Jira REST APIs. I need to get user credentials to verify it works correctly.

I've done this by creating a sessionclient, getting the current session and using getUsername() function from current session.

I'm getting the ExecutionException - RestClientException{statusCode=Optional.of(500), errorCollections=[]} Caused by: org.codehaus.jettison.json.JSONException: A JSONObject text must begin with '{' at character 1 of <html>

How to solve this issue?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question