Hi.
I was running a websocket for last few days. I have subscribed to 200 security_ids and I just had single connection. But since yesterday 2:15 PM I am getting this error “HTTP/1.1 429 Too Many Requests”. So since today morning also I am not able to connect to websocket.
I am getting this now “Too many requests from this IP hence client id is blocked”.
So is my clientID blocked or IP address?
And when my clientID will be unblocked again and I can run a websocket?
And I just had single connection with 200 symbols and it threw error. So due to the reconnection logic code was trying to reconnect every 60 seconds yesterday.
On website it is written that 5 connections with 5000 symbols in each connection is the limit. So why I got this error? Is there any reconnection limit?
Do note that the block is at the IP level only. Also, even though only 200 security ID is being subscribed, would request you to check the logic of subscribing/unsubscribing new instruments. If a new connection is being made on every subscription, then this might be a possible reason for too many connection requests.
I am using dhanhq version 2.0.2.
Please check you version, if it is the same. And in your websocket code if you are not mentioning version=“v2”. Please do that. It needs to be passed as input to DhanFeed.
i have subscribed only 2 symbols but it tell me ip is blocked i have also run the code to unsubscribe the symbols but still the same issue after that i have changed my ip then it starting work but when i configure the static ip i can not change it for 7 days so what if this issue came again when this feature came into play what should we do then @Hardik