mirror of
https://github.com/open-webui/desktop.git
synced 2026-11-05 01:27:46 +00:00
[GH-ISSUE #266] "Failed to connect to server" when configuring Open Terminal integration (works fine in browser) #170
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/desktop#170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @gilvandev on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/open-webui/desktop/issues/266
Bug: "Failed to connect to server" when configuring Open Terminal integration (works fine in browser)
Description
When configuring a Terminal (Open Terminal) integration under Settings → Integrations → Terminal and clicking Verify Connection, the desktop app shows a red "Falha na conexão com o servidor" ("Failed to connect to server") toast, even though the target server is fully reachable, responding, and correctly authenticated.
The exact same configuration works without any issue when accessing the same Open WebUI instance from a regular browser (tested in Chrome).
Environment
http://192.168.1.15:30377/openapi.jsonSteps to Reproduce
Expected Behavior
The connection should verify successfully, exactly as it does when performing the same steps in a standard browser session against the same Open WebUI server.
Actual Behavior
Connection verification fails in the desktop app only.
Troubleshooting Already Performed
To rule out server-side issues, I validated every layer manually from the TrueNAS host itself:
Network reachability from inside the Open WebUI container — confirmed working:
docker exec -it ix-open-webui-open-webui-1 curl -v http://192.168.1.15:30377/openapi.json
→ Returns
HTTP/1.1 200 OKwith the full valid OpenAPI schema.Authentication against a protected endpoint — confirmed working:
docker exec -it ix-open-webui-open-webui-1 curl -v -H "Authorization: Bearer " http://192.168.1.15:30377/execute
→ Returns
HTTP/1.1 200 OKwith[](empty process list, as expected).Direct browser access to
http://192.168.1.15:30377/docsandhttp://192.168.1.15:30377/openapi.json— both load correctly and return valid responses.Same integration configured via the Open WebUI browser session (Chrome) — connects and verifies successfully with the exact same URL and API key.
This isolates the issue specifically to the desktop app's embedded Electron/Chromium webview failing to complete the request, while the underlying server, network path, and credentials are all confirmed valid.
Suspected Cause
Given the desktop app is Electron-based, this is likely related to Private Network Access (PNA) restrictions or a stricter CORS/fetch policy enforced by the embedded Chromium instance when a "remote" context (the connected Open WebUI server) attempts to reach a separate private-network address (the Open Terminal instance) directly from the renderer. Standard browsers appear to allow or handle this differently than the Electron webview does by default.
Additional Notes
This may also affect other integrations that rely on the browser making direct requests to separate self-hosted services on the local network (not proxied through the Open WebUI backend), so it might be worth checking whether other "Direct Connection" style integrations are similarly affected.
Happy to provide further logs, devtools console output, or test additional configurations if helpful.