☰
Login
Signup
Home
›
API clients
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
14K
All Categories
0
Incidents
156
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
460
Algorithms and Strategies
1K
Java client
1.1K
API clients
404
PHP client
4K
Python client
348
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
April 2018
zartimus
I get "Invalid Session Credentials"
Ramanathan
April 2018
in
API clients
I have been using Python API for months now. Last 3 weeks, I get the following error.
My customer id is YA5767
Please call me
---------------------------------------------------------------------------
TokenException Traceback (most recent call last)
in ()
18 request_token="wzPOZe6346Wf8H4qDaXj4wZz6F7cC868"
19 kite = KiteConnect(api_key=api_key)
---> 20 data = kite.request_access_token(request_token, secret=api_secret)
21 kite.set_access_token(data["access_token"])
/opt/conda/lib/python3.5/site-packages/kiteconnect/__init__.py in request_access_token(self, request_token, secret)
267 resp = self._post("api.validate", {
268 "request_token": request_token,
--> 269 "checksum": checksum
270 })
271
/opt/conda/lib/python3.5/site-packages/kiteconnect/__init__.py in _post(self, route, params)
595 def _post(self, route, params=None):
596 """Alias for sending a POST request."""
--> 597 return self._request(route, "POST", params)
598
599 def _put(self, route, params=None):
/opt/conda/lib/python3.5/site-packages/kiteconnect/__init__.py in _request(self, route, method, parameters)
682 code=r.status_code))
683 elif exp:
--> 684 raise(exp(data["message"], code=r.status_code))
685 else:
686 raise(ex.GeneralException(data["message"], code=r.status_code))
TokenException: Invalid session credentials
zartimus
April 2018
@Ramanathan
It seems like the request_token/api_secret is wrong. Can you recheck?
Also please move onto
Kite Version 3 libs
Sign In
or
Register
to comment.
Also please move onto Kite Version 3 libs