# Timeout error in hf space

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%3E%5C
**Category:** 🔒 Gradio\
**Created:** [October 20, 2022, 12:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733 "2022-10-20T12:57:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RASMUS](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rasmus/32/21273_2.png) [@RASMUS](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRASMUS)%5C
**Post date:** [October 20, 2022, 12:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F1 "2022-10-20T12:57:42Z")

</div>

Hi,

I am getting timeout errors after one minute even though I use queue settings as instructed for long running queries in the documentation.

My hf space:

> **[Whisper ASR Youtube subtitles creator - a Hugging Face Space by Finnish-NLP](https://huggingface.co/spaces/Finnish-NLP/Whisper-ASR-youtube-subtitles)**
>
> Discover amazing ML apps made by the community

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![RASMUS](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rasmus/32/21273_2.png) [@RASMUS](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRASMUS)%5C
**Post date:** [October 27, 2022, 10:56am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F2 "2022-10-27T10:56:50Z")

</div>

Still this is not solved. Someone please?

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabidlabs)%5C
**Post date:** [November 4, 2022, 4:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F3 "2022-11-04T04:46:19Z")

</div>

Looking at the logs here: [https://huggingface.co/spaces/Finnish-NLP/Whisper-ASR-youtube-subtitles/logs/container](https://huggingface.co/spaces/Finnish-NLP/Whisper-ASR-youtube-subtitles/logs/container)

I see this error:

> websockets.exceptions.ConnectionClosedError: no close frame received or sent

Not sure what could be causing this to be honest, except for a very, very long inference process.

Does this code work for you locally btw?

---

<div class="post-metadata">

**Author:** ![RASMUS](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rasmus/32/21273_2.png) [@RASMUS](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRASMUS)%5C
**Post date:** [November 9, 2022, 12:01pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F4 "2022-11-09T12:01:38Z")

</div>

Code works locally but I could do some more testing for longer audios. It always stops at 60.4 seconds or so in colab so I thought that I would need to enable some longer processing with queue=True and it should somehow enable running longer processing (At least based on some older discussions I read) but I see it is enabled by default.

---

<div class="post-metadata">

**Author:** ![RASMUS](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rasmus/32/21273_2.png) [@RASMUS](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRASMUS)%5C
**Post date:** [November 9, 2022, 12:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F5 "2022-11-09T12:09:22Z")

</div>

![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/c/ca3f7ab0006a4e67de602cc9f8036b0b9e628fc6.png)  
Based on this I thought I should not need to add that parameter to run for longer than 60 seconds but it always stops then

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabidlabs)%5C
**Post date:** [November 23, 2022, 4:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F6 "2022-11-23T04:59:13Z")

</div>

Hi @RASMUS we previously had an issue with large file sizes not working with queuing enabled. Can you try again with the latest version of gradio (`gradio==3.11.0`) and let us know if you are still experiencing this issue?

---

<div class="post-metadata">

**Author:** ![RASMUS](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rasmus/32/21273_2.png) [@RASMUS](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRASMUS)%5C
**Post date:** [December 4, 2022, 2:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftimeout-error-in-hf-space%2F24733%2F7 "2022-12-04T14:29:45Z")

</div>

Still running into timeouts. It feels I have tried everything. Now even the dropdown menus stopped working: My testing space here [Testii Whisper Cpp - a Hugging Face Space by RASMUS](https://huggingface.co/spaces/RASMUS/testii_whisper_cpp)
