[GH-ISSUE #17904] issue: verify_tool_servers_config doesn't verify all of discovery_urls #57098

Closed
opened 2026-05-05 20:35:43 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @hsuyuming on GitHub (Sep 29, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17904

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.6.32

Ollama Version (if applicable)

No response

Operating System

Debian 12

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

We expected the verify_tool_servers_config to check all possible combinations of discovery_urls.

Actual Behavior

It only check the first one within the list.

Steps to Reproduce

  1. clone repo
git clone https://github.com/open-webui/open-webui.git
  1. cd to folder
cd open-webui
  1. create virtual env
uv venv --python==3.12.10
  1. activate virtual env
source .venv/bin/activate
  1. install packages
cd backend
uv pip install -r requirements.txt
  1. run backend api
./dev.sh
  1. signup account
  2. send request
curl -X 'POST' \
  'http://localhost:8080/api/v1/configs/tool_servers/verify' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer=<token>' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://<apigee>/abehsu-mcp-test/mcp","path":"openapi.json","type":"mcp","auth_type":"oauth_2.1","key":"","config":{"enable":true,"access_control":{"read":{"group_ids":[],"user_ids":[]},"write":{"group_ids":[],"user_ids":[]}}},"info":{"id":"<client_id>","name":"abehsu","description":""}}'

Logs & Screenshots

Error log:

{
  "detail": "Failed to fetch OAuth 2.1 discovery document from ['https://<apigee>/.well-known/oauth-authorization-server', 'https://<apigee>/.well-known/openid-configuration', 'https://<apigee>/.well-known/oauth-authorization-server/abehsu-mcp-test/mcp', 'https://<apigee>/.well-known/openid-configuration/abehsu-mcp-test/mcp']"
}
Image

Additional Information

No response

Originally created by @hsuyuming on GitHub (Sep 29, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17904 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.6.32 ### Ollama Version (if applicable) _No response_ ### Operating System Debian 12 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior We expected the verify_tool_servers_config to check all possible combinations of discovery_urls. ### Actual Behavior It only check the first one within the list. ### Steps to Reproduce 1. clone repo ```cmd git clone https://github.com/open-webui/open-webui.git ``` 2. cd to folder ```cmd cd open-webui ``` 3. create virtual env ```cmd uv venv --python==3.12.10 ``` 4. activate virtual env ```cmd source .venv/bin/activate ``` 5. install packages ```cmd cd backend uv pip install -r requirements.txt ``` 6. run backend api ```cmd ./dev.sh ``` 8. signup account 7. send request ``` curl -X 'POST' \ 'http://localhost:8080/api/v1/configs/tool_servers/verify' \ -H 'accept: application/json' \ -H 'Authorization: Bearer=<token>' \ -H 'Content-Type: application/json' \ -d '{"url":"https://<apigee>/abehsu-mcp-test/mcp","path":"openapi.json","type":"mcp","auth_type":"oauth_2.1","key":"","config":{"enable":true,"access_control":{"read":{"group_ids":[],"user_ids":[]},"write":{"group_ids":[],"user_ids":[]}}},"info":{"id":"<client_id>","name":"abehsu","description":""}}' ``` ### Logs & Screenshots Error log: ``` { "detail": "Failed to fetch OAuth 2.1 discovery document from ['https://<apigee>/.well-known/oauth-authorization-server', 'https://<apigee>/.well-known/openid-configuration', 'https://<apigee>/.well-known/oauth-authorization-server/abehsu-mcp-test/mcp', 'https://<apigee>/.well-known/openid-configuration/abehsu-mcp-test/mcp']" } ``` <img width="1290" height="963" alt="Image" src="https://github.com/user-attachments/assets/f3723482-9a40-452e-bcd7-ae98cf3f150b" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 20:35:44 -05:00
Author
Owner
<!-- gh-comment-id:3352901560 --> @hsuyuming commented on GitHub (Sep 30, 2025): Fix by https://github.com/open-webui/open-webui/commit/73f32a88e318172d1b089274f23d9819a2110c82
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#57098