Competitions Issue - Hugging Face Hub is unreachable, please try again later

I am running several competitions using huggingface competitions GitHub - huggingface/competitions
SAFEChallengePractice - a Hugging Face Space by safe-challenge .

Once in awhile when testing, I get “Hugging Face Hub is unreachable, please try again later” error when submitting a new submission. It usually resolves itself after while. I suspect that maybe I am being rate limited somewhere. I have not figured it out. Any thoughts?

1 Like

related issues:

1 Like

There seem to be several places where this message appears, but basically it seems to appear when the server does not respond within 3 seconds, or when the server is truly unreachable.

It’s hard to imagine that the connection from the Spaces of Hugging Face to the Hugging Face server would become truly unreachable (although it’s certainly possible if there are restrictions, etc.), so I wonder if it’s really a timeout…?

It rarely crashes, but there are times when the server is in bad shape.

3 seconds is not long. I have been thinking of forking the competition codebase and doing some updates. It does not seem like its actively supported anymore but I do like it.

1 Like

So looking more into this. So the error is returned by the web app If RequestException is raised

so this could several culprits here:

Some of the HfApi raise HTTPError which is a subclass RequestException

1 Like

So after more testing, I found that space creation is being rate limited. I was getting "Hugging Face Hub is unreachable, please try again later” message again. I tried creating a test space manually and I got the rate limit message:

HfHubHTTPError: 429 Client Error: Too Many Requests for url: https://huggingface.co/api/repos/create (Request ID: Root=1-67f855ab-109ab74d2573dd085ac5d217;491fe30c-b85f-4ef8-a77c-997967b609c9)

You have been rate-limited; you can retry this action in about 21 hours. If you're a new user, your limits will raise progressively over time. Get in touch with us at website@huggingface.co if you need access now.

I emailed huggingface. Not sure if there is a place to check what the limits are

1 Like