[GH-ISSUE #5038] bug: Interface freezes (suggestionPrompts and auth cookies related) #29365

Closed
opened 2026-04-25 03:47:19 -05:00 by GiteaMirror · 1 comment
Owner

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:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • [-] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

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 /config call does not include (sometimes) a Cookie: header, and so the response is very short and incomplete (in particular, with no default_prompt_suggestions and no default_models (what makes sense, since for the server the user is not logged-in).

After this /config requests 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 frozen

Reproduction 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:
image
which matches code from Suggestions.svelte
image

Docker Container Logs:

INFO:     connection closed
INFO:     10.232.1.36:0 - "GET /static/splash.png HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/scheduler.8ceb707f.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/index.07e72a31.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/entry/start.82453324.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/index.dc771ceb.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/nodes/0.4b1ea649.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/sha256.65a6c54a.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/index.77b70334.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/index.f762e09c.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/Help.80b3bced.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /api/config HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/Messages.2a22ec95.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/create.4fbceb05.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/index.830602e0.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/index.ec2ebde2.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/postcss.d8be052f.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/Selector.8f61b3a1.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/nodes/2.7c17670f.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/menu-trigger.87a134fd.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/AdvancedParams.c841aa83.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /_app/immutable/chunks/ShareChatModal.2c31c67b.js.map HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P6Yxc9T HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/auths/ HTTP/1.1" 200 OK
user Gerardo Richarte(fdc9f8b7-375b-4233-87b3-f3ff8055a713) connected with session ID -PNsUt5tousc4gKKAAA9
INFO:     10.232.1.36:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=P6YxcAo&sid=Nr4BdaUOsQfPf3DyAAA8 HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/changelog HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P6YxcAq&sid=Nr4BdaUOsQfPf3DyAAA8 HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
INFO:     ('10.232.1.36', 0) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=Nr4BdaUOsQfPf3DyAAA8" [accepted]
INFO:     connection open
INFO:     10.232.1.36:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P6YxcCe&sid=Nr4BdaUOsQfPf3DyAAA8 HTTP/1.1" 200 OK
INFO  [apps.openai.main] get_all_models()
INFO:     10.232.1.36:0 - "GET /api/v1/documents/ HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/configs/banners HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/models HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/functions/ HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/tools/ HTTP/1.1" 200 OK
INFO  [apps.ollama.main] get_all_models()
INFO:     10.232.1.36:0 - "GET /ollama/api/version HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "POST /api/v1/chats/tags HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified
INFO:     10.232.1.36:0 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
INFO:     10.232.1.36:0 - "GET /api/v1/chats/ HTTP/1.1" 200 OK

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!

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:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [-] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## 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 `/config` call does not include (sometimes) a `Cookie:` header, and so the response is very short and incomplete (in particular, with no `default_prompt_suggestions` and no `default_models` (what makes sense, since for the server the user is not logged-in). After this `/config` requests 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 frozen ## Reproduction 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:** ![image](https://github.com/user-attachments/assets/4a9a5ec6-5380-4920-90d7-95b56a63160d) which matches code from `Suggestions.svelte` ![image](https://github.com/user-attachments/assets/b2735008-1ea2-480d-95ed-740a4318d976) **Docker Container Logs:** ``` INFO: connection closed INFO: 10.232.1.36:0 - "GET /static/splash.png HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/scheduler.8ceb707f.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/index.07e72a31.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/entry/start.82453324.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/index.dc771ceb.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/nodes/0.4b1ea649.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/sha256.65a6c54a.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/index.77b70334.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/index.f762e09c.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/Help.80b3bced.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /api/config HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/Messages.2a22ec95.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/create.4fbceb05.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/index.830602e0.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/index.ec2ebde2.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/postcss.d8be052f.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/Selector.8f61b3a1.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/nodes/2.7c17670f.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/menu-trigger.87a134fd.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/AdvancedParams.c841aa83.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /_app/immutable/chunks/ShareChatModal.2c31c67b.js.map HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P6Yxc9T HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/auths/ HTTP/1.1" 200 OK user Gerardo Richarte(fdc9f8b7-375b-4233-87b3-f3ff8055a713) connected with session ID -PNsUt5tousc4gKKAAA9 INFO: 10.232.1.36:0 - "POST /ws/socket.io/?EIO=4&transport=polling&t=P6YxcAo&sid=Nr4BdaUOsQfPf3DyAAA8 HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/changelog HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P6YxcAq&sid=Nr4BdaUOsQfPf3DyAAA8 HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK INFO: ('10.232.1.36', 0) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=Nr4BdaUOsQfPf3DyAAA8" [accepted] INFO: connection open INFO: 10.232.1.36:0 - "GET /ws/socket.io/?EIO=4&transport=polling&t=P6YxcCe&sid=Nr4BdaUOsQfPf3DyAAA8 HTTP/1.1" 200 OK INFO [apps.openai.main] get_all_models() INFO: 10.232.1.36:0 - "GET /api/v1/documents/ HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/configs/banners HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/models HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/functions/ HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/tools/ HTTP/1.1" 200 OK INFO [apps.ollama.main] get_all_models() INFO: 10.232.1.36:0 - "GET /ollama/api/version HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "POST /api/v1/chats/tags HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /static/favicon.png HTTP/1.1" 304 Not Modified INFO: 10.232.1.36:0 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK INFO: 10.232.1.36:0 - "GET /api/v1/chats/ HTTP/1.1" 200 OK ``` **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!
Author
Owner

@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).

<!-- gh-comment-id:2320918557 --> @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).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#29365