@sujith My script used to work perfectly well till Nov 5. From today showing the error.
line 21, in kite_trade self.kite_loginer.update_access_token() line 39, in update_access_token request_token = self._get_request_token() line 65, in _get_request_token return json.loads(resp.text)['token'] KeyError: 'token'
Calling the kite api with
"""""" https://kite.zerodha.com/connect/login?v=3&api_key=xxx
""""""'
getting me this error
"""""""
{"status":"error","message":"Invalid session","data":null,"error_type":"TokenException"}
""""""
Since you gave that URL for redirect, you are being redirected there. It has nothing to do with Kite Connect. You need to pick the request token from the URL that is the required result.
""""""
https://kite.zerodha.com/connect/login?v=3&api_key=xxx
""""""'
getting me this error
"""""""
{"status":"error","message":"Invalid session","data":null,"error_type":"TokenException"}
""""""
You need to pick the request token from the URL that is the required result.