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 expected a response from the deepseek-r1:14b.
Actual Behavior:
An error occurred and no response printed.
Description
Bug Summary:
I’m encountering an error specifically when using the Deepseek R1 model. Other general conversational models work without any issues, but the problem consistently occurs with Deepseek R1.
ERROR [asyncio] Task exception was never retrieved
future: <Task finished name='Task-4348' coro=<process_chat_response.<locals>.post_response_handler() done, defined at C:\Users\tlseh\AppData\Roaming\uv\tools\open-webui\Lib\site-packages\open_webui\utils\middleware.py:1126> exception=IndexError('list index out of range')>
Traceback (most recent call last):
File "C:\Users\tlseh\AppData\Roaming\uv\tools\open-webui\Lib\site-packages\open_webui\utils\middleware.py", line 1479, in post_response_handler
await stream_body_handler(response)
File "C:\Users\tlseh\AppData\Roaming\uv\tools\open-webui\Lib\site-packages\open_webui\utils\middleware.py", line 1465, in stream_body_handler
if content_blocks[-1]["type"] == "text":
~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
ERROR [asyncio] Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000225D1E1EF50>
ERROR [asyncio] Unclosed connector
connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x00000225D1C79F60>, 262449.781)])']
connector: <aiohttp.connector.TCPConnector object at 0x00000225D1E1E310>
Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
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 @neuwcodebox on GitHub (Feb 5, 2025).
Originally assigned to: @tjbck on GitHub.
## Installation Method
[UV Tools](https://docs.astral.sh/uv/concepts/tools/)
## Environment
- **Open WebUI Version:** v0.5.8
- **Ollama (if applicable):** v0.5.7
- **Operating System:** Windows 10
- **Browser (if applicable):** Chrome 133.0.6943.53
**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.
- [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## Expected Behavior:
I expected a response from the deepseek-r1:14b.
## Actual Behavior:
An error occurred and no response printed.
## Description
**Bug Summary:**
I’m encountering an error specifically when using the Deepseek R1 model. Other general conversational models work without any issues, but the problem consistently occurs with Deepseek R1.
## Reproduction Details
**Steps to Reproduce:**
1. Get the Deepseek R1 models from the Ollama.
2. Chat with that models.
## Logs and Screenshots
**Browser Console Logs:**
```
+layout.svelte:99 usage {models: Array(1)}
MessageInput.svelte:717
Chat.svelte:233 {chat_id: 'ba88d687-c4e7-4da4-8de1-d2920a51c9dc', message_id: '6be14451-cb0f-441c-b5f6-a78e2480c01c', data: {…}}
Chat.svelte:1208 {content: '\n<details type="reasoning" done="false">\n<summary>Thinking…</summary>\n\n</details>\n'}
Chat.svelte:1615 {status: true, task_id: '70420643-ebcc-4940-a0ed-e25242b75cec'}
Chat.svelte:233 {chat_id: 'ba88d687-c4e7-4da4-8de1-d2920a51c9dc', message_id: '6be14451-cb0f-441c-b5f6-a78e2480c01c', data: {…}}
Chat.svelte:1208 {content: '\n<details type="reasoning" done="false">\n<summary>Thinking…</summary>\n> \n> \n</details>\n'}
Chat.svelte:233 {chat_id: 'ba88d687-c4e7-4da4-8de1-d2920a51c9dc', message_id: '6be14451-cb0f-441c-b5f6-a78e2480c01c', data: {…}}
Chat.svelte:1208 {content: ''}
Chat.svelte:233 {chat_id: 'ba88d687-c4e7-4da4-8de1-d2920a51c9dc', message_id: '6be14451-cb0f-441c-b5f6-a78e2480c01c', data: {…}}
Chat.svelte:1208 {id: 'deepseek-r1:14b-ec5c4de6-dfe0-44d1-8150-7ddeb14be3fd', created: 1738749681, model: 'deepseek-r1:14b', choices: Array(1), object: 'chat.completion.chunk', …}
+layout.svelte:99 usage {models: Array(1)}
+layout.svelte:99 usage {models: Array(0)}
```
**Docker Container Logs:**
```
ERROR [asyncio] Task exception was never retrieved
future: <Task finished name='Task-4348' coro=<process_chat_response.<locals>.post_response_handler() done, defined at C:\Users\tlseh\AppData\Roaming\uv\tools\open-webui\Lib\site-packages\open_webui\utils\middleware.py:1126> exception=IndexError('list index out of range')>
Traceback (most recent call last):
File "C:\Users\tlseh\AppData\Roaming\uv\tools\open-webui\Lib\site-packages\open_webui\utils\middleware.py", line 1479, in post_response_handler
await stream_body_handler(response)
File "C:\Users\tlseh\AppData\Roaming\uv\tools\open-webui\Lib\site-packages\open_webui\utils\middleware.py", line 1465, in stream_body_handler
if content_blocks[-1]["type"] == "text":
~~~~~~~~~~~~~~^^^^
IndexError: list index out of range
ERROR [asyncio] Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x00000225D1E1EF50>
ERROR [asyncio] Unclosed connector
connections: ['deque([(<aiohttp.client_proto.ResponseHandler object at 0x00000225D1C79F60>, 262449.781)])']
connector: <aiohttp.connector.TCPConnector object at 0x00000225D1E1E310>
```
**Screenshots/Screen Recordings (if applicable):**
[Attach any relevant screenshots to help illustrate the issue]
## Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
## 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!
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 @neuwcodebox on GitHub (Feb 5, 2025).
Originally assigned to: @tjbck on GitHub.
Installation Method
UV Tools
Environment
Open WebUI Version: v0.5.8
Ollama (if applicable): v0.5.7
Operating System: Windows 10
Browser (if applicable): Chrome 133.0.6943.53
Confirmation:
Expected Behavior:
I expected a response from the deepseek-r1:14b.
Actual Behavior:
An error occurred and no response printed.
Description
Bug Summary:
I’m encountering an error specifically when using the Deepseek R1 model. Other general conversational models work without any issues, but the problem consistently occurs with Deepseek R1.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
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!
@fq393 commented on GitHub (Feb 11, 2025):
I have encountered the same problem. Is this the DeepSeek problem or OI?
@neuwcodebox commented on GitHub (Feb 11, 2025):
@vanche1212 It was OI's problem.
Use the latest version(v0.5.9~) and it will be resolved.