Getting closed exception while calling getInstruments(Exch) API

I am new on this platform; can someone please help me why am I getting this error when I have called getInstruments(exch)?
java.lang.RuntimeException: java.lang.IllegalStateException: closed
at ~[main/:?]
at ~[main/:?]
Caused by: java.lang.IllegalStateException: closed
at ~[okio-jvm-2.4.3.jar:?]
at okhttp3.internal.Util.readBomAsCharset(Util.kt:256) ~[okhttp-4.4.0.jar:?]
at okhttp3.ResponseBody.string(ResponseBody.kt:187) ~[okhttp-4.4.0.jar:?]
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle( ~[kiteconnect-3.3.2.jar:?]
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getCSVRequest( ~[kiteconnect-3.3.2.jar:?]
at com.zerodhatech.kiteconnect.KiteConnect.getInstruments( ~[kiteconnect-3.3.2.jar:?]
at ~[main/:?]
at ~[main/:?]
at ~[main/:?]

Is it due to exchange is currently closed?
  • sujith
    This doesn't seem like Kite Connect Exception. Can you run with debug logs on and check?
Sign In or Register to comment.