mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 09:31:58 -05:00
[GH-ISSUE #18231] issue: WebSocket Connection Fails Post-Handshake with WSS via Nginx Proxy #18539
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 @kelsonbatista on GitHub (Oct 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18231
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.33
Ollama Version (if applicable)
No response
Operating System
AlmaLinux 9.6 (Sage Margay)
Browser (if applicable)
Chrome Version 131.0.6778.204 (Official Build) (64-bit)
Confirmation
README.md.Expected Behavior
WebSocket connection via WSS should establish and maintain, showing messages like 0{"sid":"..."} in DevTools.
Actual Behavior
WebSocket handshake returns 101, but connection fails immediately, with browser error "WebSocket connection to ... failed". Polling works as fallback.
Steps to Reproduce
Logs & Screenshots
Logs:
Tests Performed:
Additional Information
The WebSocket connection to
wss://web.domain.com/ws/socket.io/?EIO=4&transport=websocketfails after a successful 101 Switching Protocols response. The browser console shows "WebSocket connection to ... failed", and no WebSocket connection appears in DevTools (Network > WS). Direct WS connection (ws://127.0.0.1:9200/ws/socket.io/) works, indicating the issue is with HTTPS/WSS via Nginx. Disabling WebSocket (ENABLE_WEBSOCKET_SUPPORT=false) resolves the issue by falling back to HTTP polling, but WebSocket is preferred for performance.Environment:
Open WebUI Version: :main
Docker compose configured with:
Nginx configured with:
Questions:
Additional Environment: