API showing incorrect API key, api secret error in between

maheshsolanke
maheshsolanke edited June 2022 in Python client
Hello team.

after creating the object successfully.
the API working perfectly for position book calls
but when calling order_history, it's showing below error,
and again it's working fine for other API calls perfectly except order_history.

File "kiteconnect\connect.py", line 416, in order_history
File "kiteconnect\connect.py", line 826, in _get
File "kiteconnect\connect.py", line 898, in _request
kiteconnect.exceptions.InputException: Invalid `api_key` or `access_token`.
Tagged:
  • SRIJAN
    SRIJAN edited June 2022
    Are you using set_access_token method??
  • ATH
    Hello SRIJAN

    I'm facing Same issue,
    and using set_access_token()

    - Is their any alternative
    - how to handle this error

  • SRIJAN
    SRIJAN edited June 2022
    @ATH ,

    Check if your api_key/access token is having null value.
Sign In or Register to comment.