i am getting following error even when i use fresh token
data = kite.historical_data(instrument_code, from_str, to_str, interval)
File “build/bdist.linux-x86_64/egg/kiteconnect/connect.py”, line 608, in historical_data
File “build/bdist.linux-x86_64/egg/kiteconnect/connect.py”, line 697, in _get
File “build/bdist.linux-x86_64/egg/kiteconnect/connect.py”, line 766, in _request
kiteconnect.exceptions.InputException: invalid token
the same code was working till afternoon today. need help.