TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

Unexpected server response: 429

Open DeLabsI0 opened this issue 2 years ago • 1 comments

After running more than 7 scripts running at the same time, we are getting "Unexpected server response: 429" error. Do you have any ideas for a workaround? /Experienced this error on your end?

{"level":"error","message":"[UncaughtException] Error: Unexpected server response: 429, origin: uncaughtException, stack: Error: Unexpected server response: 429\n at ClientRequest. (/home/ubuntu/blockchain-slots-server/node_modules/@mathieuc/tradingview/node_modules/ws/lib/websocket.js:783:7)\n at ClientRequest.emit (node:events:390:28)\n at ClientRequest.emit (node:domain:475:12)\n at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:623:27)\n at HTT

DeLabsI0 avatar Jan 24 '23 13:01 DeLabsI0

The error you're encountering, Unexpected server response: 429, is an HTTP status code that indicates you're sending too many requests in a given amount of time, and the server rate-limits you. In other words, you're hitting the server's rate limits.

damian123 avatar Oct 29 '23 02:10 damian123