-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hi guys this component is showing this message always in console:
"content_type application/json"
But the problem is not in the component but I found it is a print on routes.py
async def get_item_or_file(
request: fastapi.Request,
) -> Union[ComponentServerJSONBody, ComponentServerBlobBody]:
content_type = request.headers.get("Content-Type")
print("content_type", content_type) << -- Here
If you can remove this it will stop polluting our logs.
Have you searched existing issues? 🔎
- I have searched and found no existing issues
Reproduction
import gradio as gr
with gr.Blocks() as demo:
file = gr.FileExplorer(glob="**/*.png", root_dir=".")
demo.launch()
Screenshot
Logs
N/A
System Info
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 5.49.0
gradio_client version: 1.13.3
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 24.1.0
anyio: 4.9.0
audioop-lts is not installed.
brotli: 1.1.0
fastapi: 0.116.1
ffmpy: 0.6.1
gradio-client: 1.13.3
groovy: 0.1.2
httpx: 0.28.1
huggingface-hub: 0.34.2
jinja2: 3.1.6
markupsafe: 3.0.2
numpy: 2.2.6
orjson: 3.11.1
packaging: 25.0
pandas: 2.3.1
pillow: 11.3.0
pydantic: 2.11.7
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.12.5
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.47.2
tomlkit: 0.13.3
typer: 0.16.0
typing-extensions: 4.14.1
uvicorn: 0.35.0
mcp is not installed.
pydantic: 2.11.7
authlib is not installed.
itsdangerous is not installed.
gradio_client dependencies in your environment:
fsspec: 2025.7.0
httpx: 0.28.1
huggingface-hub: 0.34.2
packaging: 25.0
typing-extensions: 4.14.1
websockets: 15.0.1
Severity
I can work around it
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working