Issue with Kite API Request Token Getting Invalid Immediately After Generation

nrk
nrk edited May 29 in API clients
Hi,
I'm facing an issue with the Kite API request token. Even though I have an active API subscription, the request token becomes invalid less than a minute after it is generated.

Here's what I'm doing:

I generate a new request token and use it to log in to my API.

Right after that, when I try to make any API request, I get an "invalid token" error — even though it hasn't even been a minute since the token was created.

Can someone help me understand why this is happening and how to fix it?

Thanks in advance.
Tagged:
  • Nivas
    You shouldn't call generate session every time you run the script. You can learn more about it here.
Sign In or Register to comment.