My order placements were working well last week, but i get the following error when trying to place orders. I have already tried deleting my old keys and replacing them with new keys ..i have one instance running. kiteconnect.exceptions.InputException: Invalid `api_key` or `access_token`. Kite order placement failed: Invalid `api_key` or `access_token`. Traceback (most recent call last): File "/Users/harishiyer/Documents/Trading/Swing Trader/eq_sentinal_stable_V3_7.5.py", line 1401, in place_order order_id = self.kite.place_order( ^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/site-packages/kiteconnect/connect.py", line 361, in place_order return self._post("order.place", ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/anaconda3/lib/python3.12/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 "/opt/anaconda3/lib/python3.12/site-packages/kiteconnect/connect.py", line 937, in _request raise exp(data["message"], code=r.status_code) kiteconnect.exceptions.InputException: Invalid `api_key` or `access_token`. ^[[A
You may refer to the similar discussion here. If the issue persists, you can run pykiteconnect in debug mode and paste the complete stack trace here. You can initialise kiteconnect with the debug flag true. Make sure to remove app and client-specific tokens.
If the issue persists, you can run pykiteconnect in debug mode and paste the complete stack trace here. You can initialise kiteconnect with the debug flag true. Make sure to remove app and client-specific tokens.