mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
Errors are not getting displayed #76
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 @therohitdas on GitHub (Dec 8, 2023).
If during chat an error is returned by ollama,
Currently, the UI gets stuck in this loading state:
To Reproduce
Steps to reproduce the behaviour:
llama2-uncensored:7b-chat-fp16model using the settings tab of this UI.I tried running ollama in a terminal to view the logs,
500error was being returned because the model was not loading properly.Expected behaviour
The error should be displayed in the UI somewhere.
Desktop (please complete the following information):
@tjbck commented on GitHub (Dec 11, 2023):
Hi, Thanks for creating this issue. I've been trying to reproduce your issue but cannot seem to get 500 error on any of my machines. Could you provide us with the exact instructions on how to reproduce the issue? Thanks!
@therohitdas commented on GitHub (Dec 11, 2023):
OS: MacOS 14.1.2
Chip: M1 Pro
Ram: 16GB
Browser Edge Version 119.0.2151.97 (Official Build) (arm64)
Ollama version is 0.1.14
Model Pulled: llama2-uncensored:7b-chat-fp16
Video: showing the error: https://0x0.st/H3tE.mov (please download and save it, it might get deleted automatically after some days)
Steps I did:
hiThe entire output from Ollama after running the server.
@therohitdas commented on GitHub (Dec 11, 2023):
Ollama's official API documentation does not currently have Error Responses Specifications.
I checked the code. When generating a chat title, it is currently checking if the response is ok
a7bec01d7b/src/routes/(app)/c/%5Bid%5D/%2Bpage.svelte#L539-L549But when calling the /chat API, the code is directly trying to read the body without trying to check if the request succeded.
a7bec01d7b/src/routes/(app)/c/%5Bid%5D/%2Bpage.svelte#L221-L224@therohitdas commented on GitHub (Dec 11, 2023):
Response returned when I checked if !res.ok