Solution for error code-429

DaneshBansal
Hi all
I am using two API's in one account and using multiple instances on same API. While I am setting up connection on API, i am getting below error.

Reading excel sheet3...
Complete reading excel sheet3
NEW PREFIX FOR TODAY IS: NIFTY25430
STRATEGY_STOP_TIME FOR TODAY IS: 09:40:00
Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (429 - TooManyRequests))
Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (429 - TooManyRequests))
Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (429 - TooManyRequests))
Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (429 - TooManyRequests))
Reconnect attempt: 1
Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (429 - TooManyRequests))
Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (429 - TooManyRequests))
Reconnect attempt: 2

I tried adding a new API, but still getting the same issue. Pls help me find a solution to this issue.

Regards

Danesh Bansal
  • Sravanthi_bh
    Sravanthi_bh edited April 28
    This happens when you are exceeding the maximum allowed limit for WebSocket connection. you may check out the similar discussion here.
  • DaneshBansal
    Hi. Thanks a lot for your response. Kindly help me with following info:

    a) Is this limit per account or per api.
    b) How to increase this limit.

    Regards

    Danesh
  • Sravanthi_bh
    To learn more, please refer to the API rate limits documentation."
  • DaneshBansal
    Thanks a lot for your prompt responses. Pls ignore my little knowledge, I am not able to figure out which of teh specified limits is getting exceeded. If it is web-socket connection, i dont see any specified limit on that.

    I have even tried adding a new API, it does not help. How can I come out of this issue.

    Regards
  • Sravanthi_bh
    Make sure, you have not spun-up multiple instances of the same program. This thread explains more.
Sign In or Register to comment.