I am using the following code to get request token post login: Dim redirectURL As String = String.Format("http://{0}:{1}/", IPAddress.Loopback, GetRandomUnusedPort()) Dim loginURL As String = String.Format("{0}&redirect_url={1}", "https://kite.trade/connect/login?api_key=" & ApiKey & "&v=3", redirectURL)
Dim http = New HttpListener() http.Prefixes.Add(redirectURL) http.Start() 'Console.WriteLine("Waiting for login to finish") Process.Start(New ProcessStartInfo(loginURL) With { .UseShellExecute = True }) Dim context = Await http.GetContextAsync() .....
I also face same issue.
It looks some issue in the javascript code on Zerodha side , not sure only zerodha development team can verify