JSONObject["data"] not found. is getting thrown. Yesterday evening some permission related error was getting thrown. Am I the only one using historical api?
org.json.JSONException: JSONObject["data"] not found. at org.json.JSONObject.get(JSONObject.java:471) at org.json.JSONObject.getJSONObject(JSONObject.java:636) at com.rainmatter.models.HistoricalData.parseResponse(HistoricalData.java:24) at com.rainmatter.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:452) at MultipleInstruments.loadZerodhaHistoricalData(MultipleInstruments.java:306) at MultipleInstruments.run(MultipleInstruments.java:153) at java.lang.Thread.run(Thread.java:745) at MultipleInstruments.main(MultipleInstruments.java:129) org.json.JSONException: JSONObject["data"] not found. at org.json.JSONObject.get(JSONObject.java:471) at org.json.JSONObject.getJSONObject(JSONObject.java:636) at com.rainmatter.models.HistoricalData.parseResponse(HistoricalData.java:24) at com.rainmatter.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:452) at MultipleInstruments.loadZerodhaHistoricalData(MultipleInstruments.java:306) at MultipleInstruments.run(MultipleInstruments.java:153) at java.lang.Thread.run(Thread.java:745) at MultipleInstruments.main(MultipleInstruments.java:129)
org.json.JSONException: JSONObject["data"] not found. at org.json.JSONObject.get(JSONObject.java:471) at org.json.JSONObject.getJSONObject(JSONObject.java:636) at com.rainmatter.models.HistoricalData.parseResponse(HistoricalData.java:24) at com.rainmatter.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:452) at MultipleInstruments.loadZerodhaHistoricalData(MultipleInstruments.java:306) at MultipleInstruments.run(MultipleInstruments.java:153) at java.lang.Thread.run(Thread.java:745) at MultipleInstruments.main(MultipleInstruments.java:129)
Are you using the Kite Connect 3?
Can you paste the exact error message?
at org.json.JSONObject.get(JSONObject.java:471)
at org.json.JSONObject.getJSONObject(JSONObject.java:636)
at com.rainmatter.models.HistoricalData.parseResponse(HistoricalData.java:24)
at com.rainmatter.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:452)
at MultipleInstruments.loadZerodhaHistoricalData(MultipleInstruments.java:306)
at MultipleInstruments.run(MultipleInstruments.java:153)
at java.lang.Thread.run(Thread.java:745)
at MultipleInstruments.main(MultipleInstruments.java:129)
Is this consistent?
Can you post example params to reproduce this error?