mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #16055] issue: updateDirectConnectionsHandler is not defined browser console error when saving settings in admin connections tab
#33297
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 @silentoplayz on GitHub (Jul 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16055
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.18 (
5fbfe2bdca)Ollama Version (if applicable)
v0.9.5 (
5d8c173529)Operating System
Ubuntu 24.04.2 LTS
Browser (if applicable)
Mozilla Firefox Debian Package (mozilla-deb - 1.0) v141.0 (64-bit)
Confirmation
README.md.Expected Behavior
No JavaScript errors should be displayed in the browser console when saving settings within the "Connections" tab of the admin panel settings. The settings should save successfully without any client-side errors.
Actual Behavior
Upon clicking the "Save" button in the "Connections" tab of the admin panel settings, an
Uncaught (in promise) ReferenceError: updateDirectConnectionsHandler is not definederror is displayed in the browser console. This error occurs even if no changes have been made to the settings. While the error does not prevent the settings from being saved, it indicates an underlying JavaScript issue.Steps to Reproduce
v0.6.18(commit5fbfe2bdcadf5f157926f6551891e4dc0802b9f3) or later on thedevbranch.F12key on the keyboard) and observe the browser console for the error.Logs & Screenshots
Browser Console Log:
Docker Container Logs:
(No relevant Docker container logs observed for this client-side error.)
Screenshot:

Additional Information
This error has been consistently reproduced on both a production-like dev instance (Docker installation) and a fresh local development instance (built from
devbranch). While the error doesn't seem to prevent settings from being saved, it indicates a client-side JavaScript issue that should be addressed for stability and clean console output.@silentoplayz commented on GitHub (Jul 27, 2025):
I've found the fix for this bug! It's a one-line change in /src/lib/components/admin/Settings/Connections.svelte. On line 199, the function
updateDirectConnectionsHandleris called, but it should beupdateConnectionsHandler. Correcting this typo resolves theUncaught (in promise) ReferenceErrorerror.Just like my helpful comment left here. I don't believe a PR is warranted for this fix, but I do urge the maintainer to solve this issue promptly! I have personally tested the fix and the error is no longer thrown in the browser console and settings are save successfully.
@tjbck commented on GitHub (Jul 28, 2025):
Addressed with
807c34b40c@silentoplayz commented on GitHub (Jul 29, 2025):
While this does prevent the error from being thrown in the browser console that I was getting, is it the proper fix? These are the toast notifications that are displayed to me upon saving changes on the

Connectionspage with the removal of theupdateDirectConnectionsHandlerline:The

Settings saved successfully!toast notification comes from elsewhere; likely from/src/lib/components/admin/Settings.svelte:And these are the toast notifications that are displayed to me upon saving changes on the

Connectionspage with the rename ofupdateDirectConnectionsHandlertoupdateConnectionsHandler:Here, we observe that the
Settings saved successfully!toast notification does not appear, but then we also gain aConnection settings updatedtoast notification.The
Connection settings updatedtoast notification is triggered by the following lines of code, but this only gets triggered with a rename ofupdateDirectConnectionsHandlertoupdateConnectionsHandler.