Token invalid or expired

Tilaksomashekar
How do i solve this?
kiteconnect.exceptions.TokenException: Token is invalid or has expired.

Traceback (most recent call last):
File "/home/tilak/Do_not_delete/algo_trading_try.py", line 13, in
data = kite.generate_session("your_request_token", api_secret=api_secret)
File "/home/tilak/.local/lib/python3.10/site-packages/kiteconnect/connect.py", line 263, in generate_session
resp = self._post("api.token", params={
File "/home/tilak/.local/lib/python3.10/site-packages/kiteconnect/connect.py", line 865, in _post
return self._request(route, "POST", url_args=url_args, params=params, is_json=is_json, query_params=query_params)
File "/home/tilak/.local/lib/python3.10/site-packages/kiteconnect/connect.py", line 937, in _request
raise exp(data["message"], code=r.status_code)
Sign In or Register to comment.