I have taken the subscription of historical data and then invalidated the access token also regenerated the API secret and did re-login , but after doing all these steps, still I am getting the following exception and I could continue to call other APIs successfully though,
kite.instruments('NSE')
You'll see a dict of stock names and token_ids. You need to feed the token_id that corresponds to the stock name to the instrument_token argument