I am using the JIRA REST API for Java.
Today all of a sudden I am getting the following error.
Exception in thread "main" com.mashape.unirest.http.exceptions.UnirestException: java.lang.RuntimeException: java.lang.RuntimeException: org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:143)
at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
This happens always at this part of my code:
HttpResponse response = Unirest.get("https://your-domain.atlassian.net/rest/agile/1.0/board")
.basicAuth("email@example.com", "")
.header("Accept", "application/json")
.asJson();
which is taken from the official JIRA website: Jira Software Cloud REST API reference
Of course, the parts of the code above such as the URL, Password and username were replaced accordingly.
The code was working perfectly until today 2019.03.20.