JSON Exception

Harigoud
I am receiving the below exception when tried to retrieve LTP with kite Historic API

org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:505)
at org.json.JSONObject.(JSONObject.java:214)
at org.json.JSONObject.(JSONObject.java:357)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:18)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:152)
at com.zerodhatech.kiteconnect.KiteConnect.getLTP(KiteConnect.java:752)
  • namburimk
    I am also facing same issue, today on Quote and OHLC APIs.
    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

    OHLC API:
    at com.zerodhatech.kiteconnect.KiteConnect.getOHLC(KiteConnect.java:760)

    Quite API:
    at com.zerodhatech.kiteconnect.KiteConnect.getQuote(KiteConnect.java:747)
  • iamshaurya
    Same case with me
    A JSONObject text must begin with '{' at 1 [character 2 line 1

    while trying to fetch quote data for instrument token 10721026 (NIFTY2332317000PE) and 10720514 (NIFTY2332316950PE)
  • MangeshD
    Same case with me too 'Couldn't parse JSON response' in php api while getting quote
  • sujith
    It seems fine now. Is this still happening?
  • Harigoud
    @11:10AM Still happening.

    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
    at org.json.JSONTokener.syntaxError(JSONTokener.java:505)
    at org.json.JSONObject.(JSONObject.java:214)
    at org.json.JSONObject.(JSONObject.java:357)
    at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:18)
    at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:152)
    at com.zerodhatech.kiteconnect.KiteConnect.getQuote(KiteConnect.java:726)
  • sujith
    This should be fixed now. Few of the users were affected by this.
  • Harigoud
    Thanks for the support Sujith. Seems it is resolved.
This discussion has been closed.