Hi Team, I am using two accounts and have two different apps created for trading using my software hosted on https://happytrades.net I have used the same URL as postback for both of my apps. Now I am able to do kite login using one account and when I do kite login using another account then I get the request token in the postback but however, I am getting an error as follows: The token is invalid or has expired., referer: https://kite.zerodha.com/connect/login?api_key=vhr8emfssapj175yx7j&sess_id=54BdAjagP5UBuDzALFQ2CX4wmvlbfLgOThis error is on the line when I am generating the session using the line: kite = KiteConnect(api_key=self.api_key) kite.generate_session(request_token=request_token, api_secret=str(session['secret_key'])) This line is working fine for my one account. When I try to login with a different account on another browser, then I am receiving the mentioned error.
kite = KiteConnect(api_key=api_key)#"rgeqni8asdfop6znpa7q") data = kite.generate_session(request_token=request_token,api_secret=secret_key)
I tried generating secret key again for the account but again the same error is throwing.
Account number facing issue:ZP1323 Account number working fine: ZU7797
Could you please help me on this as this is back-end issue from KITE since for one account it is working fine and for another it is throwing an error.
Could you please suggest what supposed to be done in this case.Please let me know in case any further information is required.
I have confirmed the key values are getting passed correctly by using the debug mode.
Issue is exactly similar like in below thread
Could you please help in that direction.
Thanks a lot for all your help.