☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
October 24
sujith
October 23
Tilaksomashekar
Token invalid or expired
Tilaksomashekar
October 23
in
Python client
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)
Tilaksomashekar
October 23
could anyone help here please??
Tilaksomashekar
October 23
@sujith
sujith
October 24
You can refer to this
thread
to know more.
Sign In
or
Register
to comment.