Access Token

babansfolio
@sujith and Zerodha Team,

Is there any problem ongoing today as from today morning I am not able to generate new access token?
Following error repeatedly coming

----------------------------------------------------------------------------------------------------------------------------------------------------------------
raise exp(data["message"], code=r.status_code)
iteconnect.exceptions.TokenException: Invalid `checksum`.
------------------------------------------------------------------------------------------------------------------------------------------------------------
For testing, I had re-generated API secret, generated multiple times obtained_request_token but no success.
What could be the reason of such fault?
  • sujith
    Hi,
    The invalid checksum is thrown when the api_key, request_token or api_secret is wrong.
  • babansfolio
    @sujith : Thanks for feedback.

    It seems some other problem persists. Multiple time "api_key","api_secret" and "obtained_request_token" has been checked on my end.
    Because today morning I had regenerated api_secret and post that never get access token.
    So it seems something went wrong post generation of "api_secret".

    You can check on your system about my login activities to troubleshoot.

    Please help to resume my daily operation as soon possible
  • sujith
    Can you private message the code and values you are passing?
    PS: The request token is valid for only a couple of minutes and can be used only once.
  • babansfolio
    @sujith : Thanks for feedback.

    It seems some other problem persists. Multiple time "api_key","api_secret" and "obtained_request_token" has been checked on my end.
    Because today morning I had regenerated api_secret and post that never get access token.
    So it seems something went wrong post generation of "api_secret".

    You can check on your system about my login activities to troubleshoot.

    The Code I am using to generate Access Token:
    =========================================================================
    import logging
    from kiteconnect import KiteConnect

    # Initialize all variables we need
    api_key = "**********"
    client_id = "******"
    api_secret = "*******************"

    ## change the request_token
    obtained_request_token="*********************"

    logging.basicConfig(level=logging.DEBUG)
    kite = KiteConnect(api_key)
    data = kite.generate_session(obtained_request_token,api_secret=api_secret)
    print(data["access_token"])
    ===========================================================================

    Please help to res
  • babansfolio
    @sujith and Zerodha Team: Do you need any other information to support? Problem still continuous
Sign In or Register to comment.