mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #5038] bug: Interface freezes (suggestionPrompts and auth cookies related) #52503
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 @gerasdf on GitHub (Aug 30, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5038
Bug Report
Installation Method
I've my own fork of Open-WebUI, and I just updated from 0.3.11 to 0.3.16. I'm running it using your helm charts in AWS
Environment
Open WebUI Version: v0.3.16
Ollama (if applicable): Not in use (OpenAI)
Operating System: Linux. Docker image as built from your repo
Browser (if applicable): Chrome 128.0.6613.84
Confirmation:
Expected Behavior:
I log in to Open-WebUI and I can use it.
Actual Behavior:
On logging in, the app freezes. If I go directly to a previous saved chat, it just works as expected.
Description
Bug Summary:
I tracked the bug to suggestionPrompts being undefined (Suggestions.sveltle). This doesn't happen always, and it doesn't change if I do have suggestion prompts configured. Tracing in Chrome's console I found that the
/configcall does not include (sometimes) aCookie:header, and so the response is very short and incomplete (in particular, with nodefault_prompt_suggestionsand nodefault_models(what makes sense, since for the server the user is not logged-in).After this
/configrequests sort of fails, I see an/auths/call, that properly sets the cookie, and then all subsequent API calls work perfectly, but since there was a JS error, the application is frozenReproduction Details
Steps to Reproduce:
I just can't get a way to reproduce it from scratch. I have two Chromes open, on the same user, and on one it works, and on the other it doesn't. I tried starting on a fresh Incognito Window, but it didn't fail. I tried clearing cookies on the one that fails, but this doesn't change anything. The big difference (I should have said it earlier) is that in the one that fails, Open-WebUI is embedded in an iframe. The same setting was working before updating to 0.3.16, and it still works even after update for some users, not for others.
Logs and Screenshots
Browser Console Logs:


which matches code from
Suggestions.svelteDocker Container Logs:
Screenshots/Screen Recordings (if applicable):
Additional Information
Just thinking aloud. A check for undefined suggested prompts may "fix" the issue, but I believe a check for properly logged in user before doing any call is better. I could suggest code for the first, but not really for the 2nd option, sorry :-/
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@gerasdf commented on GitHub (Aug 30, 2024):
More info:
Logging out and back in, didn't solve it. Tried with different users, it still failed.
Clearing all cached data and cookies, and logging back in, did actually solve it.
You may say it was a "user" problem, and I'd agree, but maybe there's something to be done to ease the experience.
BTW: I love what you are doing, I'm building on top of it, only to find that you then add pipelines, files, HTML_FILE_ID_... to do exactly what I've been doing. I'm slow to move to your newer features, but I hope I will do. keep it up, it's amazing.
(honestly, I believe you could be hosting a SaaS for people to just come and use it, connecting to their preferred LLMs, if you are not doing it yet).