Getting Invalid Client ID error in WebSocket since yesterday

I’ve had an ‘invalid client ID’ error in the WebSocket connection with Dhan since yesterday. I’ve double-checked my client ID, which is correct, but the error persists. Everything worked fine before yesterday, and I haven’t changed the code.

Hello @Nirupama

Welcome to MadeForTrade community!

Can you check two things:

  1. Your subscription is active for Dhan APIs
  2. Your access token is not expired.

I am too getting this error
“Authorizing… Authorization successful! Disconnected: Invalid Client ID WebSocket connection error: no close frame received or sent Reconnecting Again… Watchlist changed. Reconnecting the feed…” this error when I run Dhan_[websocket.py](javascript:void(0); ) file via CMD

Hello @banajit

Kindly check your validity of token and subscription. This usually occurs in these two scenarios.

Do i need to subscribe both ? I havent subscribe the data API yet
@Hardik

Yes, you need to have data API subscription to be able to connect to Live Market Feed.

ok, I have to get paid subscription I guess .
@Hardik thanks

1 Like