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

Add a delay in the Feature API fetch loop to avoid 429 errors #90

Open
ian-astun opened this issue May 30, 2023 · 1 comment
Open

Add a delay in the Feature API fetch loop to avoid 429 errors #90

ian-astun opened this issue May 30, 2023 · 1 comment

Comments

@ian-astun
Copy link

If you ask for a reasonable amount of data (say a county) python on my machine can exceed the (undocumented?) rate limit on even a relatively slow machine with a relatively slow broadband. So it would be useful to add a sleep step (preferably user configurable) to slow down the requests to prevent it just stopping.

@mattlovett
Copy link

Not a bad idea... but an even nicer solution would be to detect 429 responses and then sleep, so that you go as fast as you can until you hit the limit.

@JEPooley JEPooley mentioned this issue Oct 4, 2023
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

2 participants