# Internal server error / bool not iterable

**URL:** <https://discuss.huggingface.co/t/internal-server-error-bool-not-iterable/149494>\
**Category:** Beginners\
**Created:** [April 8, 2025, 7:40pm UTC](https://discuss.huggingface.co/t/internal-server-error-bool-not-iterable/149494 "2025-04-08T19:40:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 9, 2025, 4:06am UTC](https://discuss.huggingface.co/t/internal-server-error-bool-not-iterable/149494/2 "2025-04-09T04:06:52Z")

</div>

> Exception in ASGI application  
> If “const” in schema:  
> Type error, argument of type “bool” is not itterable

If the cause is something else, we should investigate again, but since the message is very similar to this error, it may be possible to avoid it by specifying the version of pydantic.

> [@Error : No API Found](https://discuss.huggingface.co/t/error-no-api-found/146226):
>
> Hi, I have built a Gemini 2.0 flash based photo editing app with gradio ui. This app is running perfectly fine on my local system, but when I am trying to run it on spaces it is giving me Error : No API Found. I have used gemini api keys in secrects Code : [https://huggingface.co/spaces/Saurabh502/Gemini-photo/resolve/main/app.py](https://huggingface.co/spaces/Saurabh502/Gemini-photo/resolve/main/app.py) Please let me know your thoughts, on how to resolve this. Thanks

> [@Agent Course - First Agent Template](https://discuss.huggingface.co/t/agent-course-first-agent-template/148170):
>
> After duplicating the space [First Agent Template - a Hugging Face Space by agents-course](https://huggingface.co/spaces/agents-course/First_agent_template), I get this blocking exception at startup: File “/usr/local/lib/python3.10/site-packages/gradio\_client/utils.py”, line 898, in get\_type if “const” in schema: TypeError: argument of type ‘bool’ is not iterable Do you have any idea what might be causing this error during startup?

---

_[View the full topic](https://discuss.huggingface.co/t/internal-server-error-bool-not-iterable/149494)._
