Error during WebSocket handshake: Unexpected response code: 403

rajeshkolagatla
Hi Zerodha,
I am trying to get tick level data from the kiteconnect API and I am receiving this error message:
failed: Error during WebSocket handshake: Unexpected response code: 403

I am using the Kite Ticker Pure JS from the GitHUb code here (https://gist.github.com/ajinasokan/b36d17da1a58af62782978c16bca309a)
Could anyone help me out.

Thanks,
Rajesh
Tagged:
  • sujith
    A 403 means your session is expired. You need to generate access token again.
  • ashishjindal89
    is there a way to do it programmatically? Currently, i suppose we have to login on browser and then we receive a callback. Is there a way to circumvent this?
  • rakeshr
    @ashishjindal89
    It is mandatory by the exchange that a user has to manually login at least once a day. We don't recommend automating login.
This discussion has been closed.