Kite Connect redirect URL is jumpy, flashes and gone

KKannan
Hi All,

I just signed in for the API and facing a weird issue which is not covered anywhere as far i could see, googling for hrs didn't return any similar cases, so i am posting it here.

To acquire the access token i did the mandatory manual login by pasting this URL into the address bar https://kite.zerodha.com/connect/login?v=3&api_key=properAPIKey

after hitting the enter button, i see the following returned URL for a few seconds with an access token in the query string

https://kite.zerodha.com/connect/login?v=3&api_key=properAPIKey&request_token=4MwOByEZOe0rguq5xjaLEQkCFCG4O5bB&action=login&type=login&status=success

and then it immediately redirects to the following URL

https://kite.zerodha.com/connect/finish?api_key=properAPIKey&sess_id=QCihW8FOdUx8vg0bUof9BSSE3juahGkP

with the page showing error message like this

{"status":"error","message":"Invalid or expired connect session. Try re-initiating login.","data":null,"error_type":"InputException"}

I was able to capture the access token few times and test it with my Java code and it is working fine. But development requires hundreds of compilations and each time trying to copy this fleeting url successfully is a frustrating job.

I have tried clearing the browser cache but the issue remains the same, it flashes and moves to show the error page.

Appreciate any help.

Thanks
Kannan
Sign In or Register to comment.