Redirect URL error


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}", "" & ApiKey & "&v=3", redirectURL)

Dim http = New HttpListener()
'Console.WriteLine("Waiting for login to finish")
Process.Start(New ProcessStartInfo(loginURL) With {
.UseShellExecute = True
Dim context = Await http.GetContextAsync()

I pass a Random Port to the "" URL, like ""

This was working fine until a few days back.
But now suddenly sometimes it works fine and sometimes it goes to "" which is not accessible.

Some days it works fine, some days, it doesn't!!!!!

Can you help plug this one please?


  • jagbirsingh
    jagbirsingh edited August 2021
    Hi Manoj / @sujith / @rakeshr

    I also face same issue. :(

    It looks some issue in the javascript code on Zerodha side , not sure only zerodha development team can verify

  • sujith
    It is mandatory by the exchange that a user has to login manually at least once a day. We don't recommend automating login.
This discussion has been closed.