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:
I downloaded the llama2-uncensored:7b-chat-fp16 model using the settings tab of this UI.
I tried asking it a question, and it got stuck in the loading phase.
I tried running ollama in a terminal to view the logs, 500 error 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):
OS: MacOS 14.1.2
Browser Edge Version 119.0.2151.97 (Official Build) (arm64)
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:
1. I downloaded the `llama2-uncensored:7b-chat-fp16` model using the settings tab of this UI.
2. I tried asking it a question, and it got stuck in the loading phase.
I tried running ollama in a terminal to view the logs, `500` error 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):**
- OS: MacOS 14.1.2
- Browser Edge Version 119.0.2151.97 (Official Build) (arm64)
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!
@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!
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:
Pulled llama2-uncensored:7b-chat-fp16 using the ollama pull command
selected it in the ollama-ui
sent a message hi
The UI got stuck, I checked the ollama serve logs, and it showed error 500. I checked Ollama-ui logs, and it showed an internal server error
The entire output from Ollama after running the server.
@therohitdas commented on GitHub (Dec 11, 2023):
[Ollama's official API documentation](https://github.com/jmorganca/ollama/blob/main/docs/api.md) 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
https://github.com/ollama-webui/ollama-webui/blob/a7bec01d7ba00fe320be4c66e43341a1f45dd179/src/routes/(app)/c/%5Bid%5D/%2Bpage.svelte#L539-L549
But when calling the /chat API, the code is directly trying to read the body without trying to check if the request succeded.
https://github.com/ollama-webui/ollama-webui/blob/a7bec01d7ba00fe320be4c66e43341a1f45dd179/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
```json
{"error":"llama runner process has terminated"}
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
https://github.com/ollama-webui/ollama-webui/blob/a7bec01d7ba00fe320be4c66e43341a1f45dd179/src/routes/(app)/c/%5Bid%5D/%2Bpage.svelte#L539-L549
But when calling the /chat API, the code is directly trying to read the body without trying to check if the request succeded.
https://github.com/ollama-webui/ollama-webui/blob/a7bec01d7ba00fe320be4c66e43341a1f45dd179/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