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?