mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-29 12:34:58 -05:00
[GH-ISSUE #24032] issue: Can't connect to MCP server with self-signed certificate - RuntimeWarning: coroutine 'create_insecure_httpx_client' was never awaited #123468
Reference in New Issue
Block a user
Originally created by @doss22 on GitHub (Apr 23, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24032
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.9.1
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I am trying to connect to my mcp server with an self-signed certificate via streamable http. I am using Bearer to authenticate.
Actual Behavior
Connection can't be established. Open WebUI fails to create
create_insecure_httpx_client.Steps to Reproduce
I am using the offical docker image and have a nginx in front of Open WebUI. Other external connections, like connections to vllm or litellm are working properly.
Env Vars:
docker-compose.yml
Logs & Screenshots
Trying to reach the MCP Server via Chat Interface produces the following log:
Test Connection in Admin Panel produces following log:
Additional Information
No response
@doss22 commented on GitHub (Apr 23, 2026):
Top reproduce you can also run backend/open_webui/utils/mcp/client.py
https://github.com/open-webui/open-webui/blob/main/backend/open_webui/utils/mcp/client.py
@tjbck commented on GitHub (Apr 24, 2026):
Addressed in dev.