uanble to login to kite api

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
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.postRequest(
at com.zerodhatech.kiteconnect.KiteConnect.generateSession(
at kite.ZerodhaClient.setUp(
at kite.ZerodhaClient.(
at kite.ZerodhaClient.main(
Is my account blocked?
  • sujith
    Can you check if this is taken care of?
  • methetrader
    This not taken care of. Are you blacklisting IP addresses? same code doesn't work in one machine and works on the other.
    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.
  • methetrader
    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"}
  • sujith
    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.
Sign In or Register to comment.