mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-07 09:19:06 -05:00
[PR #4117] [CLOSED] fix: socket.io client url #44448
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4117
Author: @ther0bster
Created: 7/25/2024
Status: ❌ Closed
Base:
dev← Head:fix-socket-io-url📝 Commits (1)
02b104ffix: socket.io client url📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/routes/+layout.svelte(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
fixes #4025
fixed crash happening with IPv6 and some IPv4 setups where the backend crashes
backend/main.pyreturns500 Internal Server Error, sincedata["session_id"]does not exist in the JSON payloadapi/chat/completedPOST request made by thechatCompletedHandlerinsrc/lib/components/chat/Chat.sveltedoes not contain asession_idfield$socket?.idyields undefined (with IPv6)this seems to be caused by
const _socket = io('${WEBUI_BASE_URL}', {in src/routes/+layout.svelteWEBUI_BASE_URLis empty because of its definition insrc/lib/constants.tsfix: if
iois initialized with a default url according to its docs towindow.location.hosteverything seems to work without errors againFixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.