Hey Sujith, I have been using the API for past year and so far the access token generated in the morning works for the entire day. From yesterday, it gets expired in a single use or within 3 to 4 times of calling the API using the same token. Forced to regenerate the access token once more. Is it just for me or are there any issues on the server or could you help me know why this is happening ?
Are you using publically exposed app(not restricted to your personal use)? If not, then you need not set a public token(it's used only for a publically exposed app).
No - am the only user of the program and that code has been the same from the beginning. So do you want me to comment that line and try ? Will it solve the issue am facing? In the mean time I will try commenting it and run and examine the results as well.
I commented that public token line. Generated a new access token for the day and the program ran thrice and then again when running the 4th time, session expired exception was thrown by the Kite Server.
I guess the session can only be expired by the server .... why is it expiring ??
then again when running the 4th time, session expired exception was thrown by the Kite Server
You need to check if another instance/process is not initiating the login as well on the same client. This thread explains more about the simultaneous sessions rule.
kiteConnect.setAccessToken("xxxxx");
kiteConnect.setPublicToken("yyyy")
If not, then you need not set a public token(it's used only for a publically exposed app).
I'm referring to the Python API document, and I do not find set_public_token().
I guess the session can only be expired by the server .... why is it expiring ??