Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too Many Requests Error #2302

Open
Sa7cez opened this issue Sep 30, 2023 · 5 comments
Open

Too Many Requests Error #2302

Sa7cez opened this issue Sep 30, 2023 · 5 comments

Comments

@Sa7cez
Copy link

Sa7cez commented Sep 30, 2023

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?

@sindresorhus
Copy link
Owner

Got retries requests by default. You could try to turn that off.

@sumit-sen-90
Copy link

How Can i Off retries request

@noxify
Copy link

noxify commented Jan 30, 2024

@sumit-sen-90 - based on the docs:

By default, Got will retry on failure. To disable this option, set options.retry.limit to 0.

@sumit-sen-90
Copy link

HAVE YOU ANY TESTED CODE WHICH IS WORKING WITH 0 RETRY MECHANISM ????
PLEASE PROVIDE

@noxify
Copy link

noxify commented Feb 6, 2024

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 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants