I have been using the kite aoi for almost an year now. 2FA is enabled and subcription is active. I have been getting this error in login flow. session expired com.zerodhatech.kiteconnect.kitehttp.exceptions.TokenException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:48) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(KiteRequestHandler.java:85) at com.zerodhatech.kiteconnect.KiteConnect.generateSession(KiteConnect.java:189) at kite.ZerodhaClient.setUp(ZerodhaClient.java:551) at kite.ZerodhaClient.(ZerodhaClient.java:490) at kite.ZerodhaClient.main(ZerodhaClient.java:66) Is my account blocked?
There is no problem from KiteConnect. You must be doing something not correctly as in the thread posted above by Sujith Sir. Read it and generate access token properly.
as I said, the same code works fine in one machine and not in the second machine. if my code was wrong it should fail in both the machines?. This code was working fine for the last one year +
The error that I get back is {"data":null,"error_type":"TokenException","message":"Token is invalid or has expired.","status":"error"}
We don't have any issue from our end. This could be some config issue. Maybe you can run javakiteconnect with debug logs on and check the things sent in request and response.
The error that I get back is
{"data":null,"error_type":"TokenException","message":"Token is invalid or has expired.","status":"error"}