Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random IllegalStateException with getInstruments api #24

Open
chedine opened this issue Jun 7, 2021 · 2 comments
Open

Random IllegalStateException with getInstruments api #24

chedine opened this issue Jun 7, 2021 · 2 comments

Comments

@chedine
Copy link

chedine commented Jun 7, 2021

I get a random and hard to reproduce IllegalStateException errors with calls to the api GetInstruments. Retrying the same , works. Exception trace below;

java.lang.IllegalStateException: closed
okio.RealBufferedSource.select(RealBufferedSource.kt:83)
okhttp3.internal.Util.readBomAsCharset(Util.kt:256)
okhttp3.ResponseBody.string(ResponseBody.kt:187)
com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:34)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getCSVRequest(KiteRequestHandler.java:150)
at com.zerodhatech.kiteconnect.KiteConnect.getInstruments(KiteConnect.java:651)

Version:3.1.0

@kssujithcj
Copy link
Collaborator

Is this consistent or intermitent? How often do you fetch the instruments master dump?

@chedine
Copy link
Author

chedine commented Jun 8, 2021

Is this consistent or intermitent? How often do you fetch the instruments master dump?

  • Intermittent and I would say 10 to 15% of the times.
  • I fetch instruments only once during the entire session (start to end).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants