# Gradio spaces app error

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%3E%5C
**Category:** Spaces\
**Created:** [March 11, 2022, 7:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616 "2022-03-11T19:27:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![clementlr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/clementlr/32/3207_2.png) [@clementlr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fclementlr)%5C
**Post date:** [March 11, 2022, 7:27pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F1 "2022-03-11T19:27:07Z")

</div>

Hi, our gradio app is working locally but not when deployed on spaces. We got a Gradio error instead of regulard output.  
The log files of the app looks ok as the last logger info message is the last one from the application perspective.  
Any tips to troubleshoot further what could be the error ?  
The spaces is the following:

> **[Surfrider - a Hugging Face Space by Surfrider](https://huggingface.co/spaces/Surfrider/surfnet)**
>
> Discover amazing ML apps made by the community

I appreciate your feedbacks.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fosanseviero)%5C
**Post date:** [March 11, 2022, 9:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F2 "2022-03-11T21:06:48Z")

</div>

Hi!

Gradio `launch` has a parameter `enable_queue` which is False by default. When the inference time is over a minute, it will timeout which is what I think is going on with this Space. You can set it to `True`.

You can find more at

> **[Gradio Docs](https://gradio.app/docs/#launch)**
>
> Browse Gradio Documentation and Examples

---

<div class="post-metadata">

**Author:** ![clementlr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/clementlr/32/3207_2.png) [@clementlr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fclementlr)%5C
**Post date:** [March 12, 2022, 11:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F3 "2022-03-12T11:22:15Z")

</div>

Hi [osanseviero](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fosanseviero)%2C thanks for your feedback. I updated the launch code as you said but still get the time out.  
I can however successfully run the app when using shorter video that allows inference time to be less than 1 minute.  
Any idea why launch(debug=True,enable\_queue=True) looks not to apply ?  
I appreciate your feedback.

---

<div class="post-metadata">

**Author:** ![clementlr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/clementlr/32/3207_2.png) [@clementlr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fclementlr)%5C
**Post date:** [March 13, 2022, 8:44am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F4 "2022-03-13T08:44:27Z")

</div>

Looks to be working now. Maybe the option took some time to propagate.  
Thanks for the heads up!

---

<div class="post-metadata">

**Author:** ![Youfeng](https://avatars.discourse-cdn.com/v4/letter/y/ee59a6/32.png) [@Youfeng](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FYoufeng)%5C
**Post date:** [January 4, 2023, 4:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F5 "2023-01-04T04:15:53Z")

</div>

Hi, @clementlr, I had the same issue when I run my app on huggingface spaces. Have you figure it out?

I also can not use debugging function on spaces.

Thank you.

---

<div class="post-metadata">

**Author:** ![freddyaboulton](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/freddyaboulton/32/32732_2.png) [@freddyaboulton](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ffreddyaboulton)%5C
**Post date:** [January 4, 2023, 3:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F6 "2023-01-04T15:37:40Z")

</div>

> [@Youfeng](#):
>
> I also can not use debugging function on spaces.

Hi @Youfeng ! Which space is erroring out for you?

---

<div class="post-metadata">

**Author:** ![Youfeng](https://avatars.discourse-cdn.com/v4/letter/y/ee59a6/32.png) [@Youfeng](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FYoufeng)%5C
**Post date:** [January 5, 2023, 12:58am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F7 "2023-01-05T00:58:13Z")

</div>

Hi, @freddyaboulton , Thanks for you response. I have test my app locally, which works fine. However, it appear ‘error’ in the output text area, it didn’t show any further information (I have set `debug=True`). I used selenium package as a dependency package for this application. I was wondering if this is an issue. Thanks.

---

<div class="post-metadata">

**Author:** ![Chintan-Donda](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@Chintan-Donda](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FChintan-Donda)%5C
**Post date:** [August 18, 2023, 11:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fgradio-spaces-app-error%2F15616%2F8 "2023-08-18T11:23:14Z")

</div>

Same issue. For me, it shows Error on the Gradio front-end. However, it works well in the backend - meaning, I can see the response (via logging) in the backend, but Gradio shows Error may be because of the timeout.

I’m building a chatbot where I’m streaming the response using demo.queue().

```auto
demo.queue(
        concurrency_count=5, status_update_rate=30, api_open=False
    ).launch(
        share=True,
        max_threads=5
    )

```

My env:  
Gradio v3.40.1  
Python 3.9.16

Any help please?
