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]

GitHub | agautam-hs | 1 month ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Improved error handling

    GitHub | 1 month ago | agautam-hs
    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]
  2. 0

    Eclipse Tomcat projects not updating when published

    Stack Overflow | 5 months ago | Bravetheif
    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]
  3. 0

    Get native REST service error in Unirest

    Stack Overflow | 1 year ago | Samuel Alexander
    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]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 282#193853458

    GitHub | 12 months ago | sadovnikov
    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]
  6. 0

    Failing to upload file

    GitHub | 2 years ago | ygalblum
    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]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.json.JSONException

    A JSONArray text must start with '[' at 1 [character 2 line 1]

    at org.json.JSONTokener.syntaxError()
  2. Android Platform
    JSONArray.<init>
    1. org.json.JSONTokener.syntaxError(JSONTokener.java:433)
    2. org.json.JSONArray.<init>(JSONArray.java:106)
    3. org.json.JSONArray.<init>(JSONArray.java:145)
    3 frames
  3. unirest-java
    BaseRequest.asJson
    1. com.mashape.unirest.http.JsonNode.<init>(JsonNode.java:48)
    2. com.mashape.unirest.http.HttpResponse.<init>(HttpResponse.java:95)
    3. com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:139)
    4. com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
    4 frames
  4. Unknown
    ScrapUnirestSample.main
    1. ScrapUnirestSample.main(ScrapUnirestSample.java:7)
    1 frame
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame