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)
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)
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)
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)
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)