It looks like you're new here. If you want to get involved, click one of these buttons!
data = kite.generate_session(request_token, api_secret=constants.API_SECRET)
Traceback (most recent call last):
File "/Users/kiteconnect_code.py", line 20, in <module>
data = kite.generate_session(request_token, api_secret=constants.API_SECRET)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/kiteconnect/connect.py", line 249, in generate_session
resp = self._post("api.token", {
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/kiteconnect/connect.py", line 821, in _post
return self._request(route, "POST", params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/kiteconnect/connect.py", line 886, in _request
raise exp(data["message"], code=r.status_code)
<b class="Bold">kiteconnect.exceptions.TokenException: Token is invalid or has expired.
</b>[Finished in 1.1s with exit code 1]
Thanks.
And the fact that this issue went away with API Secret key reset, makes it even more serious. We don't change API secret key frequently.
But if this kind of issue happens again and it requires API secret key reset, it should be communicated through exception trace message.
@rakeshr - Request to investigate internally once.