☰
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
14.9K
All Categories
0
Incidents
176
Node JS client
51
Go client
840
.Net API client
397
Kite Publisher
554
.Net / VBA / Excel (3rd party)
490
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
409
PHP client
4.3K
Python client
357
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
General
In this Discussion
October 2025
nagavenij
October 2025
PF8492
TokenException: Token is invalid or has expired.
PF8492
October 2025
in
Python client
File ~\AppData\Local\Programs\Python\Python313\Lib\site-packages\kiteconnect\connect.py:937, in KiteConnect._request(self, route, method, url_args, params, is_json, query_params)
935 # native Kite errors
936 exp = getattr(ex, data.get("error_type"), ex.GeneralException)
--> 937 raise exp(data["message"], code=r.status_code)
939 return data["data"]
940 elif "csv" in r.headers["content-type"]:
TokenException: Token is invalid or has expired.
PF8492
October 2025
I got token from below steps after opening the url
kite.login_url()
Out[20]: '
https://kite.zerodha.com/connect/login?api_key=ctdm69vfvlhu2ig9&v=3'
got this token "DxkmWWbSlDLGjYI3f546hwTrZnlkegqm"
kite.set_access_token("DxkmWWbSlDLGjYI3f546hwTrZnlkegqm")
nagavenij
October 2025
You can refer to this
discussion
.
Sign In
or
Register
to comment.
kite.login_url()
Out[20]: 'https://kite.zerodha.com/connect/login?api_key=ctdm69vfvlhu2ig9&v=3'
got this token "DxkmWWbSlDLGjYI3f546hwTrZnlkegqm"
kite.set_access_token("DxkmWWbSlDLGjYI3f546hwTrZnlkegqm")