# Timeout error in hf space

**URL:** <https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733>\
**Category:** 🔒 Gradio\
**Created:** [October 20, 2022, 12:57pm UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733 "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](https://discuss.huggingface.co/u/RASMUS)\
**Post date:** [October 20, 2022, 12:57pm UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/1 "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](https://discuss.huggingface.co/u/RASMUS)\
**Post date:** [October 27, 2022, 10:56am UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/2 "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](https://discuss.huggingface.co/u/abidlabs)\
**Post date:** [November 4, 2022, 4:46am UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/3 "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](https://discuss.huggingface.co/u/RASMUS)\
**Post date:** [November 9, 2022, 12:01pm UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/4 "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](https://discuss.huggingface.co/u/RASMUS)\
**Post date:** [November 9, 2022, 12:09pm UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/5 "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](https://discuss.huggingface.co/u/abidlabs)\
**Post date:** [November 23, 2022, 4:59am UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/6 "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](https://discuss.huggingface.co/u/RASMUS)\
**Post date:** [December 4, 2022, 2:29pm UTC](https://discuss.huggingface.co/t/timeout-error-in-hf-space/24733/7 "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)
