Error in the sample code

lethalstriker
Hi, I downloaded the latest version of Kite Connect library and was running the provided sample project when I got the following error:

This error comes in the WebSockets.cs class in the Close function. I had not modified the code and am running it as it is.
Though rest of the Kite functions works well even after this error.
  • tonystark
    Hi @lethalstriker,

    Thank you for reporting. Can you recall the events just before this happened? Was the ticker connected? Was it ticking? Did you experience any network disconnection before this?
  • lethalstriker
    lethalstriker edited September 2017
    I am getting this error after token is initialized and accesstoken is set with the new request token. It is happening when ever a request is being made to the Kite e.g this time I get the error while downloading instruments.
  • tonystark
    Hi @lethalstriker,

    I think you are calling Close function of ticker multiple times or calling it without initializing the connection. Please check if this is the scenario.

    And it seems you running the sample program as it is. It is given as an example library usage. Please try a simple program like one in the read me file.
Sign In or Register to comment.