DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443

LakshmiNarasaiah
LakshmiNarasaiah edited December 2022 in Python client
error while using kite object
  • rakeshr
    The above request log doesn't show an error status code or message. Can you paste here the complete request/debug log?
  • LakshmiNarasaiah
    data = kite.generate_session(request_token, api_secret)
    kite.set_access_token(data["access_token"])
  • rakeshr
    data = kite.generate_session(request_token, api_secret)
    kite.set_access_token(data["access_token"])
    This looks fine unless you are assigning the wrong values. Go through this thread.
  • LakshmiNarasaiah
    api_key="xxxxxxxx"
    api_secret="cxxxxxxx"
    logging.basicConfig(level=logging.DEBUG)
    kite = KiteConnect(api_key)
    kite.login_url()
    request_token="xxxxxxxxxxxxxxxxxxxxxxx"
    data = kite.generate_session(request_token, api_secret)
    kite.set_access_token(data["access_token"])


    this is my entire code bro
This discussion has been closed.