Access Token Issue

maxhiten
Today, I received 'Incorrect `api_key` or `access_token`' for 8 minutes that too when market start i.e. around 9 am. In back-end, only 1-2 scripts were running which is very common as I run those almost everyday to run my site https://flyingkites.in.

What is the actual reason for facing token issue suddenly today
  • nagavenij
    You may refer to this similar discussion.
  • maxhiten
    Your link is of no use to me. Here I am not asking you to tell me how and when to generate access tokens.

    This issue might have happened due to multiple active sessions with same api key. But I also need a confirmation from you. And if it is true, please tell me how many active sessions I can have at the same time with same api key.
  • nagavenij
    Only one active session can be created for a Kite Connect app/API key. However, once the session is created, the same valid access token can be used across multiple programs . You may refer to this similar discussion.

    Hence, you do not need to create separate sessions for each application. You can generate the session once and reusing the same access token across your applications.
Sign In or Register to comment.