Unable to Load Historical Data and Getting Disconnected from KiteTicker

phantomdrake
IOException in Loading Historical Data from Kite:

java.net.SocketTimeoutException: timeout
at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:593) ~[okhttp-3.9.1.jar:na]
at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:601) ~[okhttp-3.9.1.jar:na]
at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:146) ~[okhttp-3.9.1.jar:na]
at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:125) ~[okhttp-3.9.1.jar:na]
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) ~[okhttp-3.9.1.jar:na]
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[okhttp-3.9.1.jar:na]
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[okhttp-3.9.1.jar:na]
  • phantomdrake
    2018-08-01 09:29:19.067 ERROR 17132 --- [ main] o.s.boot.SpringApplication : Application run failed

    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
    at org.json.JSONTokener.syntaxError(JSONTokener.java:505) ~[json-20171018.jar:na]
    at org.json.JSONObject.(JSONObject.java:214) ~[json-20171018.jar:na]
    at org.json.JSONObject.(JSONObject.java:357) ~[json-20171018.jar:na]
    at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:18) ~[kiteconnect-3.0.0.jar:na]
    at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:69) ~[kiteconnect-3.0.0.jar:na]
    at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:604) ~[kiteconnect-3.0.0.jar:na]

  • rakeshr
    @phantomdrake
    You can add a seconds sleep time, and then try making a call.
Sign In or Register to comment.