mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #18561] issue: ollama default network address wrong missing http:// prefix - should be http://localhost:11434 #57300
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @s-github-2 on GitHub (Oct 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18561
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.34
Ollama Version (if applicable)
No response
Operating System
windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
connection to Ollama should have succeeded after startup
Actual Behavior
No models from ollama listed. Debugged it to the address missing http:// prefix in the default which was creating silent connection failures. After adding the prefix, it is able to connect to ollama and list local models
I am not providing any logs since there is no need for logs to verify that this problem exists and the fix is simple
Steps to Reproduce
Logs & Screenshots
requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:11434/api/tags'
2025-10-23 14:09:45.975 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:55795 - "GET /ollama/api/tags/0 HTTP/1.1" 500
2025-10-23 14:10:31.140 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:55428 - "GET /_app/version.json HTTP/1.1" 200
2025-10-23 14:11:12.579 | ERROR | open_webui.routers.ollama:verify_connection:277 - Client error: localhost:11434/api/version
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
Additional Information
No response
@silentoplayz commented on GitHub (Oct 23, 2025):
How is this an issue? Are you using the bundled image with Ollama? Is the Ollama URL that gets automatically prefilled in the
Ollama API URLinput field incorrect, causing this issue to occur?@s-github-2 commented on GitHub (Oct 23, 2025):
UPDATE: I just checked my environment variables and maybe it was the fact that I had
OLLAMA_BASE_URL=localhost:11434
as a variable (can't recall but probably some other package required this) and maybe that is why the default didnt have the prefix.
Maybe the code should check that a valid URL is listed in OLLAMA_BASE_URL and alert if its incorrect.
the ollama URL that is prefilled automatically doesnt have the http:// prefix which causes the network connection to fail

Adding the prefix and hitting refresh in the UI, connects to ollama
Note: the attached image shows AFTER I added the prefix - the default prefill started with localhost: without the http:// prefix