Not getting Access Token in json data

rskholdings
kdata {'user_id': 'WI0789', 'user_type': 'individual', 'email': '[email protected]', 'user_name': 'Kumar', 'user_shortname': 'Kumar', 'broker': 'ZERODHA', 'exchanges': ['MF', 'NFO', 'CDS', 'NSE', 'BSE'], 'products': ['CNC', 'NRML', 'MIS', 'BO', 'CO'], 'order_types': ['MARKET', 'LIMIT', 'SL', 'SL-M'], 'avatar_url': 'https://s3.ap-south-1.amazonaws.com/zerodha-kite-blobs/avatars/aazC7l1GE6mDGFhrDW8ohj2GbUHxtibx.png', 'meta': {'demat_consent': 'consent'}}

I am getting above data from

kdata = kite.generate_session(request_token=krt,api_secret=kite_api_secret)
kdata = kite.profile()

kite.set_access_token(kdata["access_token"])
getting invalid access_token key

I don't know what I am missing

kindly help
This discussion has been closed.