failing WebSocket opening handshake ('WebSocket connection upgrade failed (403 - Forbidden)')

nhari1987
Hi team

i m facing error while connecting to Websocket. i m using python. i have regenerated new secret key and new access token.

2026-02-16 12:09:16+0530 [-] failing WebSocket opening handshake ('WebSocket connection upgrade failed (403 - Forbidden)')
2026-02-16 12:09:16+0530 [-] dropping connection to peer tcp4:3.7.92.50:443 with abort=True: WebSocket connection upgrade failed (403 - Forbidden)
2026-02-16 12:09:16,614 - kiteconnect.ticker - ERROR - Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
2026-02-16 12:09:16,614 - kiteconnect.ticker - ERROR - Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
2026-02-16 12:09:16+0530 [-] will retry in 3 seconds
2026-02-16 12:09:16+0530 [-] Stopping factory
2026-02-16 12:09:16+0530 [-] Main loop terminated.

i tired with other ISP and laptop and disabled firewall aslo.. but still not working.. please suggest any solution to resolve this issue..

Regards
Hari
  • nagavenij
    The Kite Ticker requires valid credentials. If you receive a 403 error, it means the api_key or access_token is invalid. Please refer to this discussion.
Sign In or Register to comment.