Fix TOO MANY REQUESTS error

#1
by albertvillanova HF staff - opened
BigScience Biomedical Datasets org
edited Dec 1, 2022

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 many glob 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
BigScience Biomedical Datasets org

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.

Sign up or log in to comment