[GH-ISSUE #16425] issue: All models return "cannot access local variable 'model_id' where it is not associated with a value" after update to 0.6.20 #17899

Closed
opened 2026-04-19 23:47:18 -05:00 by GiteaMirror · 17 comments
Owner

Originally created by @thr-4 on GitHub (Aug 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16425

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

0.6.20

Ollama Version (if applicable)

No response

Operating System

Windows 11

Browser (if applicable)

Firefox

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

Return chat answer

Actual Behavior

All queries end up with a "cannot access local variable 'model_id' where it is not associated with a value" error -- both local LLMs and API calls to OpenAI models. No obvious errors in console, and I have verified models work as expected using other clients.

Started happening after upgrade to 0.6.20.

Steps to Reproduce

Ask a query in new chat

Logs & Screenshots

Image

Additional Information

No response

Originally created by @thr-4 on GitHub (Aug 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/16425 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version 0.6.20 ### Ollama Version (if applicable) _No response_ ### Operating System Windows 11 ### Browser (if applicable) Firefox ### 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 Return chat answer ### Actual Behavior All queries end up with a "cannot access local variable 'model_id' where it is not associated with a value" error -- both local LLMs and API calls to OpenAI models. No obvious errors in console, and I have verified models work as expected using other clients. Started happening after upgrade to 0.6.20. ### Steps to Reproduce Ask a query in new chat ### Logs & Screenshots <img width="669" height="297" alt="Image" src="https://github.com/user-attachments/assets/ab6f606b-6931-4d3d-aa78-642c6b540253" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-19 23:47:18 -05:00
Author
Owner

@aljaca commented on GitHub (Aug 10, 2025):

Same issue. Upgraded from 0.6.18 to 0.6.19 and then 0.6.20. Both 0.6.19 and 0.6.20 give "cannot access local variable 'model_id' where it is not associated with a value" error in any chat request.

OpenAI compatible API endpoint (llama-server) on Linux 6.14.0-27-generic #27~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 17:38:49 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

<!-- gh-comment-id:3172293452 --> @aljaca commented on GitHub (Aug 10, 2025): Same issue. Upgraded from 0.6.18 to 0.6.19 and then 0.6.20. Both 0.6.19 and 0.6.20 give "cannot access local variable 'model_id' where it is not associated with a value" error in any chat request. OpenAI compatible API endpoint (llama-server) on Linux 6.14.0-27-generic #27~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 17:38:49 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Author
Owner

@geek0011 commented on GitHub (Aug 10, 2025):

Same issue. Upgraded from 0.6.18 to 0.6.19 and then 0.6.20. Both 0.6.19 and 0.6.20 give "cannot access local variable 'model_id' where it is not associated with a value" error in any chat request.

OpenAI compatible API endpoint (llama-server) on Linux 6.14.0-27-generic #27~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 17:38:49 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

would it be possible to downgrade to 0.6.18 now?

<!-- gh-comment-id:3172296111 --> @geek0011 commented on GitHub (Aug 10, 2025): > Same issue. Upgraded from 0.6.18 to 0.6.19 and then 0.6.20. Both 0.6.19 and 0.6.20 give "cannot access local variable 'model_id' where it is not associated with a value" error in any chat request. > > OpenAI compatible API endpoint (llama-server) on Linux 6.14.0-27-generic [#27](https://github.com/open-webui/open-webui/issues/27)~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 17:38:49 UTC 2 x86_64 x86_64 x86_64 GNU/Linux would it be possible to downgrade to 0.6.18 now?
Author
Owner

@aljaca commented on GitHub (Aug 10, 2025):

Yes, downgrading works for me.

<!-- gh-comment-id:3172301277 --> @aljaca commented on GitHub (Aug 10, 2025): Yes, downgrading works for me.
Author
Owner

@geek0011 commented on GitHub (Aug 10, 2025):

Yes, downgrading works for me.

Can you tell me how to do that in docker? Thanks.

<!-- gh-comment-id:3172303745 --> @geek0011 commented on GitHub (Aug 10, 2025): > Yes, downgrading works for me. Can you tell me how to do that in docker? Thanks.
Author
Owner

@aljaca commented on GitHub (Aug 10, 2025):

Yes, downgrading works for me.

Can you tell me how to do that in docker? Thanks.

Sorry, no. Not a docker user -- pip install for me

<!-- gh-comment-id:3172314965 --> @aljaca commented on GitHub (Aug 10, 2025): > > Yes, downgrading works for me. > > Can you tell me how to do that in docker? Thanks. Sorry, no. Not a docker user -- pip install for me
Author
Owner

@Lawlietr commented on GitHub (Aug 10, 2025):

Same issue here, all local models and openai api are not works.

<!-- gh-comment-id:3172327519 --> @Lawlietr commented on GitHub (Aug 10, 2025): Same issue here, all local models and openai api are not works.
Author
Owner

@gaby commented on GitHub (Aug 10, 2025):

Can you run your instance in Debug mode, the logs should say what the error is:

--env GLOBAL_LOG_LEVEL="DEBUG"

<!-- gh-comment-id:3172328424 --> @gaby commented on GitHub (Aug 10, 2025): Can you run your instance in Debug mode, the logs should say what the error is: `--env GLOBAL_LOG_LEVEL="DEBUG"`
Author
Owner

@gaby commented on GitHub (Aug 10, 2025):

These are the commits from the latest release that modify model_id:

<!-- gh-comment-id:3172331754 --> @gaby commented on GitHub (Aug 10, 2025): These are the commits from the latest release that modify `model_id`: - https://github.com/open-webui/open-webui/commit/bf3c807047ed8641d188bdc9cc64b6f4947cbf50 - https://github.com/open-webui/open-webui/commit/f027df06d127cf858ccdd2088634a75a8e7ee6c1
Author
Owner

@aljaca commented on GitHub (Aug 10, 2025):

These are the commits from the latest release that modify model_id:

* [bf3c807](https://github.com/open-webui/open-webui/commit/bf3c807047ed8641d188bdc9cc64b6f4947cbf50)

* [f027df0](https://github.com/open-webui/open-webui/commit/f027df06d127cf858ccdd2088634a75a8e7ee6c1)

2025-08-09 20:35:34.881 | DEBUG | open_webui.utils.middleware:process_chat_payload:737 - form_data: {'stream': True, 'model': 'Qwen3-30B-A3B-Instruct-2507', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roman Empire'}], 'features': {'image_generation': False, 'code_interpreter': False, 'web_search': False, 'memory': False}, 'variables': {'{{USER_NAME}}': 'USER', '{{USER_LOCATION}}': 'Unknown', '{{CURRENT_DATETIME}}': '2025-08-09 20:35:34', '{{CURRENT_DATE}}': '2025-08-09', '{{CURRENT_TIME}}': '20:35:34', '{{CURRENT_WEEKDAY}}': 'Saturday', '{{CURRENT_TIMEZONE}}': 'America/Vancouver', '{{USER_LANGUAGE}}': 'en-US'}, 'metadata': {'user_id': 'dbc785be-d488-425b-91d3-417abe9f4669', 'chat_id': '28566108-f41c-4a87-85a8-4dca57620a74', 'message_id': '9ad53493-70e1-4fca-99b4-1be34e375102', 'session_id': 'dVUUWW6b2gD_d5GqAAAB', 'filter_ids': [], 'tool_ids': None, 'tool_servers': [], 'files': None, 'features': {'image_generation': False, 'code_interpreter': False, 'web_search': False, 'memory': False}, 'variables': {'{{USER_NAME}}': 'USER', '{{USER_LOCATION}}': 'Unknown', '{{CURRENT_DATETIME}}': '2025-08-09 20:35:34', '{{CURRENT_DATE}}': '2025-08-09', '{{CURRENT_TIME}}': '20:35:34', '{{CURRENT_WEEKDAY}}': 'Saturday', '{{CURRENT_TIMEZONE}}': 'America/Vancouver', '{{USER_LANGUAGE}}': 'en-US'}, 'model': {'id': 'Qwen3-30B-A3B-Instruct-2507', 'object': 'model', 'created': 1754796922, 'owned_by': 'llamacpp', 'meta': {'vocab_type': 2, 'n_vocab': 151936, 'n_ctx_train': 262144, 'n_embd': 2048, 'n_params': 30532122624, 'size': 17684527104}, 'openai': {'id': 'Qwen3-30B-A3B-Instruct-2507'}, 'urlIdx': '0', 'tags': [], 'name': 'Qwen3-30B-A3B-Instruct-2507', 'direct': True}, 'direct': True, 'params': {'stream_delta_chunk_size': None, 'function_calling': 'default'}}} 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.middleware:process_chat_payload:905 - tool_ids=None 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.middleware:process_chat_payload:906 - tool_servers=[] 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.chat:generate_chat_completion:167 - generate_chat_completion: {'stream': True, 'model': 'Qwen3-30B-A3B-Instruct-2507', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roman Empire'}], 'metadata': {'user_id': 'dbc785be-d488-425b-91d3-417abe9f4669', 'chat_id': '28566108-f41c-4a87-85a8-4dca57620a74', 'message_id': '9ad53493-70e1-4fca-99b4-1be34e375102', 'session_id': 'dVUUWW6b2gD_d5GqAAAB', 'filter_ids': [], 'tool_ids': None, 'tool_servers': [], 'files': None, 'features': {'image_generation': False, 'code_interpreter': False, 'web_search': False, 'memory': False}, 'variables': {'{{USER_NAME}}': 'USER', '{{USER_LOCATION}}': 'Unknown', '{{CURRENT_DATETIME}}': '2025-08-09 20:35:34', '{{CURRENT_DATE}}': '2025-08-09', '{{CURRENT_TIME}}': '20:35:34', '{{CURRENT_WEEKDAY}}': 'Saturday', '{{CURRENT_TIMEZONE}}': 'America/Vancouver', '{{USER_LANGUAGE}}': 'en-US'}, 'model': {'id': 'Qwen3-30B-A3B-Instruct-2507', 'object': 'model', 'created': 1754796922, 'owned_by': 'llamacpp', 'meta': {'vocab_type': 2, 'n_vocab': 151936, 'n_ctx_train': 262144, 'n_embd': 2048, 'n_params': 30532122624, 'size': 17684527104}, 'openai': {'id': 'Qwen3-30B-A3B-Instruct-2507'}, 'urlIdx': '0', 'tags': [], 'name': 'Qwen3-30B-A3B-Instruct-2507', 'direct': True}, 'direct': True, 'params': {'stream_delta_chunk_size': None, 'function_calling': 'default'}}} 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.chat:generate_chat_completion:184 - direct connection to model: {'Qwen3-30B-A3B-Instruct-2507': {'id': 'Qwen3-30B-A3B-Instruct-2507', 'object': 'model', 'created': 1754796922, 'owned_by': 'llamacpp', 'meta': {'vocab_type': 2, 'n_vocab': 151936, 'n_ctx_train': 262144, 'n_embd': 2048, 'n_params': 30532122624, 'size': 17684527104}, 'openai': {'id': 'Qwen3-30B-A3B-Instruct-2507'}, 'urlIdx': '0', 'tags': [], 'name': 'Qwen3-30B-A3B-Instruct-2507', 'direct': True}} 2025-08-09 20:35:34.884 | INFO | open_webui.utils.chat:generate_direct_chat_completion:72 - generate_direct_chat_completion 2025-08-09 20:35:35.270 | INFO | open_webui.utils.chat:generate_direct_chat_completion:109 - res: {'status': True} 2025-08-09 20:35:35.270 | DEBUG | open_webui.main:chat_completion:1489 - Error in chat completion: cannot access local variable 'model_id' where it is not associated with a value

<!-- gh-comment-id:3172339206 --> @aljaca commented on GitHub (Aug 10, 2025): > These are the commits from the latest release that modify `model_id`: > > * [bf3c807](https://github.com/open-webui/open-webui/commit/bf3c807047ed8641d188bdc9cc64b6f4947cbf50) > > * [f027df0](https://github.com/open-webui/open-webui/commit/f027df06d127cf858ccdd2088634a75a8e7ee6c1) `2025-08-09 20:35:34.881 | DEBUG | open_webui.utils.middleware:process_chat_payload:737 - form_data: {'stream': True, 'model': 'Qwen3-30B-A3B-Instruct-2507', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roman Empire'}], 'features': {'image_generation': False, 'code_interpreter': False, 'web_search': False, 'memory': False}, 'variables': {'{{USER_NAME}}': 'USER', '{{USER_LOCATION}}': 'Unknown', '{{CURRENT_DATETIME}}': '2025-08-09 20:35:34', '{{CURRENT_DATE}}': '2025-08-09', '{{CURRENT_TIME}}': '20:35:34', '{{CURRENT_WEEKDAY}}': 'Saturday', '{{CURRENT_TIMEZONE}}': 'America/Vancouver', '{{USER_LANGUAGE}}': 'en-US'}, 'metadata': {'user_id': 'dbc785be-d488-425b-91d3-417abe9f4669', 'chat_id': '28566108-f41c-4a87-85a8-4dca57620a74', 'message_id': '9ad53493-70e1-4fca-99b4-1be34e375102', 'session_id': 'dVUUWW6b2gD_d5GqAAAB', 'filter_ids': [], 'tool_ids': None, 'tool_servers': [], 'files': None, 'features': {'image_generation': False, 'code_interpreter': False, 'web_search': False, 'memory': False}, 'variables': {'{{USER_NAME}}': 'USER', '{{USER_LOCATION}}': 'Unknown', '{{CURRENT_DATETIME}}': '2025-08-09 20:35:34', '{{CURRENT_DATE}}': '2025-08-09', '{{CURRENT_TIME}}': '20:35:34', '{{CURRENT_WEEKDAY}}': 'Saturday', '{{CURRENT_TIMEZONE}}': 'America/Vancouver', '{{USER_LANGUAGE}}': 'en-US'}, 'model': {'id': 'Qwen3-30B-A3B-Instruct-2507', 'object': 'model', 'created': 1754796922, 'owned_by': 'llamacpp', 'meta': {'vocab_type': 2, 'n_vocab': 151936, 'n_ctx_train': 262144, 'n_embd': 2048, 'n_params': 30532122624, 'size': 17684527104}, 'openai': {'id': 'Qwen3-30B-A3B-Instruct-2507'}, 'urlIdx': '0', 'tags': [], 'name': 'Qwen3-30B-A3B-Instruct-2507', 'direct': True}, 'direct': True, 'params': {'stream_delta_chunk_size': None, 'function_calling': 'default'}}} 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.middleware:process_chat_payload:905 - tool_ids=None 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.middleware:process_chat_payload:906 - tool_servers=[] 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.chat:generate_chat_completion:167 - generate_chat_completion: {'stream': True, 'model': 'Qwen3-30B-A3B-Instruct-2507', 'messages': [{'role': 'user', 'content': 'Tell me a random fun fact about the Roman Empire'}], 'metadata': {'user_id': 'dbc785be-d488-425b-91d3-417abe9f4669', 'chat_id': '28566108-f41c-4a87-85a8-4dca57620a74', 'message_id': '9ad53493-70e1-4fca-99b4-1be34e375102', 'session_id': 'dVUUWW6b2gD_d5GqAAAB', 'filter_ids': [], 'tool_ids': None, 'tool_servers': [], 'files': None, 'features': {'image_generation': False, 'code_interpreter': False, 'web_search': False, 'memory': False}, 'variables': {'{{USER_NAME}}': 'USER', '{{USER_LOCATION}}': 'Unknown', '{{CURRENT_DATETIME}}': '2025-08-09 20:35:34', '{{CURRENT_DATE}}': '2025-08-09', '{{CURRENT_TIME}}': '20:35:34', '{{CURRENT_WEEKDAY}}': 'Saturday', '{{CURRENT_TIMEZONE}}': 'America/Vancouver', '{{USER_LANGUAGE}}': 'en-US'}, 'model': {'id': 'Qwen3-30B-A3B-Instruct-2507', 'object': 'model', 'created': 1754796922, 'owned_by': 'llamacpp', 'meta': {'vocab_type': 2, 'n_vocab': 151936, 'n_ctx_train': 262144, 'n_embd': 2048, 'n_params': 30532122624, 'size': 17684527104}, 'openai': {'id': 'Qwen3-30B-A3B-Instruct-2507'}, 'urlIdx': '0', 'tags': [], 'name': 'Qwen3-30B-A3B-Instruct-2507', 'direct': True}, 'direct': True, 'params': {'stream_delta_chunk_size': None, 'function_calling': 'default'}}} 2025-08-09 20:35:34.884 | DEBUG | open_webui.utils.chat:generate_chat_completion:184 - direct connection to model: {'Qwen3-30B-A3B-Instruct-2507': {'id': 'Qwen3-30B-A3B-Instruct-2507', 'object': 'model', 'created': 1754796922, 'owned_by': 'llamacpp', 'meta': {'vocab_type': 2, 'n_vocab': 151936, 'n_ctx_train': 262144, 'n_embd': 2048, 'n_params': 30532122624, 'size': 17684527104}, 'openai': {'id': 'Qwen3-30B-A3B-Instruct-2507'}, 'urlIdx': '0', 'tags': [], 'name': 'Qwen3-30B-A3B-Instruct-2507', 'direct': True}} 2025-08-09 20:35:34.884 | INFO | open_webui.utils.chat:generate_direct_chat_completion:72 - generate_direct_chat_completion 2025-08-09 20:35:35.270 | INFO | open_webui.utils.chat:generate_direct_chat_completion:109 - res: {'status': True} 2025-08-09 20:35:35.270 | DEBUG | open_webui.main:chat_completion:1489 - Error in chat completion: cannot access local variable 'model_id' where it is not associated with a value `
Author
Owner

@gaby commented on GitHub (Aug 10, 2025):

@aljaca Thanks, found the bug. I will submit a PR in a few minutes.

<!-- gh-comment-id:3172349844 --> @gaby commented on GitHub (Aug 10, 2025): @aljaca Thanks, found the bug. I will submit a PR in a few minutes.
Author
Owner

@gaby commented on GitHub (Aug 10, 2025):

@tjbck I'm not 100% sure if #16429 fixes the issue, but should help.

The code was moved in bf3c807047 by you.

<!-- gh-comment-id:3172387128 --> @gaby commented on GitHub (Aug 10, 2025): @tjbck I'm not 100% sure if #16429 fixes the issue, but should help. The code was moved in https://github.com/open-webui/open-webui/commit/bf3c807047ed8641d188bdc9cc64b6f4947cbf50 by you.
Author
Owner

@devPermutations commented on GitHub (Aug 10, 2025):

Ubuntu server here running Docker. upgraded to 0.6.19 then 0.6.20 and the above error was occurring on any chat. It pulled the models correctly and validated that the connection to the api was correct (hence the models working). I went back to 0.6.19 and that did not resolve the issue. I went back to 0.6.18 for the issue to be resolved

<!-- gh-comment-id:3172395465 --> @devPermutations commented on GitHub (Aug 10, 2025): Ubuntu server here running Docker. upgraded to 0.6.19 then 0.6.20 and the above error was occurring on any chat. It pulled the models correctly and validated that the connection to the api was correct (hence the models working). I went back to 0.6.19 and that did not resolve the issue. I went back to 0.6.18 for the issue to be resolved
Author
Owner

@aljaca commented on GitHub (Aug 10, 2025):

I'm not 100% sure if #16429 fixes the issue, but should help.

Confirming that this fixes the issue for me on 0.6.20

<!-- gh-comment-id:3172423702 --> @aljaca commented on GitHub (Aug 10, 2025): > I'm not 100% sure if #16429 fixes the issue, but should help. Confirming that this fixes the issue for me on 0.6.20
Author
Owner

@gaby commented on GitHub (Aug 10, 2025):

@aljaca Thanks for confirming! 💪

Ping @tjbck

<!-- gh-comment-id:3172424212 --> @gaby commented on GitHub (Aug 10, 2025): @aljaca Thanks for confirming! 💪 Ping @tjbck
Author
Owner

@tjbck commented on GitHub (Aug 10, 2025):

Addressed in dev, 0.6.21 will be released shortly

<!-- gh-comment-id:3172509998 --> @tjbck commented on GitHub (Aug 10, 2025): Addressed in dev, 0.6.21 will be released shortly
Author
Owner

@RomualdYT commented on GitHub (Feb 12, 2026):

@tjbck Problem is back on dev branch 0.8 :
`2026-02-12 11:38:07.547 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - [REDACTED_IP]:[REDACTED_PORT] - "GET /api/v1/configs/connections HTTP/1.1" 200
2026-02-12 11:38:07.822 | ERROR | open_webui.routers.openai:get_models:630 - Unexpected error: External Error: {'message': 'Missing bearer authentication in header', 'type': 'invalid_request_error', 'param': None, 'code': None}
Traceback (most recent call last):

File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 4, in
uvicorn.main()
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1485, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1406, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 824, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 424, in main
run(
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 594, in run
server.run()
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 67, in run
return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
File "/usr/local/lib/python3.11/site-packages/uvicorn/_compat.py", line 30, in asyncio_run
return runner.run(main)
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)

...
File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 314, in run_endpoint_function
return await dependant.call(**values)

File "/app/backend/open_webui/routers/openai.py", line 599, in get_models
raise Exception(error_detail)
└ "External Error: {'message': 'Missing bearer authentication in header', 'type': 'invalid_request_error', 'param': None, 'code': None}"

User context:
UserModel(
id='[REDACTED_USER_ID]',
email='[REDACTED_EMAIL]',
username=None,
role='admin'
)
`

<!-- gh-comment-id:3890469965 --> @RomualdYT commented on GitHub (Feb 12, 2026): @tjbck Problem is back on dev branch 0.8 : `2026-02-12 11:38:07.547 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - [REDACTED_IP]:[REDACTED_PORT] - "GET /api/v1/configs/connections HTTP/1.1" 200 2026-02-12 11:38:07.822 | ERROR | open_webui.routers.openai:get_models:630 - Unexpected error: External Error: {'message': 'Missing bearer authentication in header', 'type': 'invalid_request_error', 'param': None, 'code': None} Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/local/lib/python3.11/site-packages/uvicorn/__main__.py", line 4, in <module> uvicorn.main() File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1485, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1406, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1269, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.11/site-packages/click/core.py", line 824, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 424, in main run( File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 594, in run server.run() File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 67, in run return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory()) File "/usr/local/lib/python3.11/site-packages/uvicorn/_compat.py", line 30, in asyncio_run return runner.run(main) File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ... File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 314, in run_endpoint_function return await dependant.call(**values) > File "/app/backend/open_webui/routers/openai.py", line 599, in get_models raise Exception(error_detail) └ "External Error: {'message': 'Missing bearer authentication in header', 'type': 'invalid_request_error', 'param': None, 'code': None}" User context: UserModel( id='[REDACTED_USER_ID]', email='[REDACTED_EMAIL]', username=None, role='admin' ) `
Author
Owner

@Classic298 commented on GitHub (Feb 12, 2026):

ys pr here https://github.com/open-webui/open-webui/pull/21327

<!-- gh-comment-id:3890621749 --> @Classic298 commented on GitHub (Feb 12, 2026): ys pr here https://github.com/open-webui/open-webui/pull/21327
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17899