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

Suggest an answer

Log in or Sign up to answer