Too Many Requests Error
I'm rewriting the code from Python to JS. I'm encountering an issue with requests.
I'm sending requests with the same headers and from the same IP address. In Python, I'm using popular 'requests' library, and the requests go through without any problems.
However, when using 'Got' in JS, I'm getting a 429 error on the 3rd or 4th request. What could be the reason for this? How can I add more browser-like behavior to the request?
Got retries requests by default. You could try to turn that off.
How Can i Off retries request
@sumit-sen-90 - based on the docs:
By default, Got will retry on failure. To disable this option, set options.retry.limit to 0.
HAVE YOU ANY TESTED CODE WHICH IS WORKING WITH 0 RETRY MECHANISM ???? PLEASE PROVIDE
Hi @sumit-sen-90 ,
here a quick example: https://github.com/noxify/honojs-got
btw. you should check your keyboard, it seems you have a problem with your capslock ;)
tbh - for me it sounds like, that there is a misconfiguration in your setup, since it works as described in the docs. Maybe sharing the relevant code could help ;)