Fetching Data Today is Mostly NetworkExceptions..!

yousuf
Hi,
Its mostly network exceptions in fetching data today (java api).. anyone facing the same problem..?
  • yousuf
    yousuf edited September 2018
    @sujith, data fetching today is not going smooth, there are two network exceptions for each successful fetch . is there any problem today from your end?
  • sujith
    Can you confirm which endpoint are you referring to?
  • sujith
    Please do paste the stacktrace and status code.
  • yousuf
    hi @sujith

    this is the stack trace,
    com.zerodhatech.kiteconnect.kitehttp.exceptions.NetworkException
    at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:58)
    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 kdf.fetch.KiteDataFetcher.fetchNsave(KiteDataFetcher.java:79)
    at kdf.fetch.KiteDataFetcher.processAll(KiteDataFetcher.java:48)
    at kdf.main.Main.process(Main.java:52)
    at kdf.main.Main.main(Main.java:38)


    using
    kiteConnect.getHistoricalData(from, to, token , period, false);

    in morning, it was working once and failing twice, now its all NetworkException.

  • yousuf
    yousuf edited September 2018
    hi @sujith
    Here is more detailed one, for the same call

    java.net.SocketTimeoutException: connect timed out
    at java.base/java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.base/java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.base/java.net.PlainSocketImpl.connect(Unknown Source)
    at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
    at java.base/java.net.Socket.connect(Unknown Source)
    at okhttp3.internal.platform.Platform.connectSocket(Platform.java:125)
    at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:238)
    at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:158)
    at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:256)
    at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:134)
    at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:113)
    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
    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 kdf.fetch.KiteDataFetcher.fetchNsave(KiteDataFetcher.java:76)
    at kdf.fetch.KiteDataFetcher.processAll(KiteDataFetcher.java:47)
    at kdf.main.Main.process(Main.java:51)
    at kdf.main.Main.main(Main.java:37)
  • sujith
    Hi @yousuf,
    We have informed the data team to look into this.
  • yousuf
    thanks @sujith
    fetching daily data was resulting in error. Now its the 30mins data which is resulting in exceptions.
    (my net is fast, and i have no network issues, )
  • yousuf
    @sujith ,

    unable to start the trading system today due to this inconsistency in data fetch. its almost all networkexceptions now. Please update if there is something going on at your end.
  • rakeshr
    @yousuf
    It's rectified.You can re-run the same.
  • yousuf
    thanks @rakeshr , @sujith but if there is a problem and if its being worked on, kindly pass that information to us, that will save us from a lot of headache.!
    Thanks again..!!
This discussion has been closed.