java.io.InterruptedIOException: thread interrupted at okio.Timeout.throwIfReached(Timeout.java:145) at okio.Okio$1.write(Okio.java:76) at okio.AsyncTimeout$1.write(AsyncTimeout.java:180) at okio.RealBufferedSink.flush(RealBufferedSink.java:216) at okhttp3.internal.http1.Http1Codec.finishRequest(Http1Codec.java:166) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:84) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:67) at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:604) at com.hlinvest.tradingplatform.zerodha.ZerodhaConnector.getHistoricalData(ZerodhaConnector.java:254) -----------------------------------------------------------internal calls-------------------------------------------------------------------------------- at com.hlinvest.tradingplatform.zerodha.ZerodhaConnector$6.onTicks(ZerodhaConnector.java:236) at com.zerodhatech.ticker.KiteTicker$3.onBinaryMessage(KiteTicker.java:275) at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368) at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270) at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990) at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749) at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
Hi I tried running a simple client just to call Historical Data:
KiteConnect kiteConnect=new KiteConnect("XXXXXXXXX"); kiteConnect.setAccessToken("XXXXXXXXX"); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date from = new Date(); Date to = new Date(); from=formatter.parse("2018-10-18 12:00:00"); to= formatter.parse("2018-10-19 12:00:00");
HistoricalData historicalData = kiteConnect.getHistoricalData(from, to, "245304324", "day", false); System.out.println(historicalData.volume);
I just want to print 1 day's stack track but apparently getting an error
Exception in thread "main" com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:69) at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:604) at com.company.Main.main(Main.java:29)
It is giving an InputException can anyone tell what is wrong over here in the inputs
I tried running a simple client just to call Historical Data: I just want to print 1 day's stack track but apparently getting an error
Exception in thread "main" com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:54)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:69)
at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:604)
at com.company.Main.main(Main.java:29)
It is giving an InputException can anyone tell what is wrong over here in the inputs
Regards
Thanks