Error : Kite API connect

sekharg
sekharg edited April 2023 in Python client
Hi Team,

Getting below error:

DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /session/token HTTP/1.1" 403 None --------------------------------------------------------------------------- TokenException Traceback (most recent call last) Cell In[107], line 1 ----> 1 data = kite.generate_session(request_token,api_secret = secret_key) 2 print (data["access_token"]) 3 kite.set_access_token(data["access_token"]) File ~\AppData\Local\anaconda3\lib\site-

attached the code.
  • tonystark
    Please do not post your credentials in the forum. I have deleted your attachment for now.

    TokenException happens when you didn't use the request_token soon enough before it expires. You can read the actual error message by catching the exception.
Sign In or Register to comment.