Fix TOO MANY REQUESTS error
#1
by
albertvillanova
HF staff
- opened
This PR optimizes the code in the loading script so that it performs much less requests to the server hosting the data files.
- We use
iter_files
instead of manyglob
calls.
This should fix the error:
aiohttp.client_exceptions.ClientResponseError: 429, message='TOO MANY REQUESTS', url=URL('https://zenodo.org/record/3978041/files/cantemist.zip?download=1')
albertvillanova
changed pull request status to
open
gabrielaltay
changed pull request status to
merged
This PR reduced the number of HTTP requests, but apparently this was not enough and we still get the "TOO MANY REQUESTS" error.
Alternatively, if the license allows so, we could host the data files here on the Hub.