kiteconnect.exceptions.TokenException: Token is invalid or has expired.

Sonadarshan
Every time I try to login I am getting this error, please anyone help with this.
Traceback (most recent call last):
File "C:/Users/sogangadhara/PycharmProjects/Screener/websocket_streaming.py", line 31, in
data = kite.generate_session(request_token="request_token", api_secret=api_secrete)
File "C:\Users\sogangadhara\PycharmProjects\Screener\venv\lib\site-packages\kiteconnect\connect.py", line 252, in generate_session
"checksum": checksum
File "C:\Users\sogangadhara\PycharmProjects\Screener\venv\lib\site-packages\kiteconnect\connect.py", line 821, in _post
return self._request(route, "POST", params)
File "C:\Users\sogangadhara\PycharmProjects\Screener\venv\lib\site-packages\kiteconnect\connect.py", line 886, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.TokenException: Token is invalid or has expired.
Sign In or Register to comment.