uanble to login to kite api

methetrader
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?
  • 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.
  • SRIJAN
    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.