-
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
When using mount_gradio_app(... , ssr_mode=True), the logs show "[SSL] record layer failure (_ssl.c:1000)" every so often as users interact with the UI. It does not seem to have any influence on the user experience at all though.
When ssr_mode=False, the log does not show that message.
Have you searched existing issues? 🔎
- I have searched and found no existing issues
Reproduction
import gradio as gr
from fastapi import FastAPI
import uvicorn
def buildit():
with gr.Blocks() as gr_block:
gr.Markdown(value="TEST")
return gr_block
if __name__ == '__main__':
app = FastAPI()
gr_block = buildit()
app = gr.mount_gradio_app(
app,
blocks=gr_block,
path="/login-app",
ssr_mode=True,
)
uvicorn.run(
app,
port=8080,
)
Screenshot
No response
Logs
This is a systemd process and the logs below are from journalctl. I'm willing to retrieve other logs if needed.
Oct 02 09:48:31 ip-[redacted] systemd[1]: Started app_kb_ui.service - app_kb_ui webserver.
Oct 02 09:48:34 ip-[redacted] start-app_kb_ui.sh[1504866]: INFO: Started server process [1504866]
Oct 02 09:48:34 ip-[redacted] start-app_kb_ui.sh[1504866]: INFO: Waiting for application startup.
Oct 02 09:48:34 ip-[redacted] start-app_kb_ui.sh[1504866]: INFO: Application startup complete.
Oct 02 09:48:34 ip-[redacted] start-app_kb_ui.sh[1504866]: INFO: Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)
Oct 02 09:48:36 ip-[redacted] start-app_kb_ui.sh[1504866]: new /login-app
Oct 02 09:48:36 ip-[redacted] start-app_kb_ui.sh[1504866]: [SSL] record layer failure (_ssl.c:1000)
Oct 02 09:48:36 ip-[redacted] start-app_kb_ui.sh[1504866]: INFO: [ip dedacted]:0 - "GET /login-app/ HTTP/1.1" 200 OK
System Info
Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 5.47.2
gradio_client version: 1.13.3
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
anyio: 4.7.0
audioop-lts is not installed.
brotli: 1.1.0
fastapi: 0.115.6
ffmpy: 0.4.0
gradio-client: 1.13.3
groovy: 0.1.2
httpx: 0.28.1
huggingface-hub: 0.35.3
jinja2: 3.1.4
markupsafe: 2.1.5
numpy: 2.2.0
orjson: 3.10.12
packaging: 24.2
pandas: 2.2.3
pillow: 11.0.0
pydantic: 2.10.3
pydub: 0.25.1
python-multipart: 0.0.19
pyyaml: 6.0.2
ruff: 0.13.2
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.41.3
tomlkit: 0.13.2
typer: 0.15.1
typing-extensions: 4.12.2
uvicorn: 0.32.1
mcp is not installed.
pydantic: 2.10.3
authlib: 1.3.0
itsdangerous: 2.2.0
gradio_client dependencies in your environment:
fsspec: 2024.10.0
httpx: 0.28.1
huggingface-hub: 0.35.3
packaging: 24.2
typing-extensions: 4.12.2
websockets: 14.1
Severity
I can work around it
rybakov-ks
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working