[GH-ISSUE #4229] completed results in a 500 Internal Server Error. #13539

Closed
opened 2026-04-19 20:15:09 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @zhangyongcun on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4229

Bug Report

Description

Calling /api/chat/completed at the end of a conversation occasionally results in a 500 Internal Server Error.
When this error occurs, it makes it impossible to continue the conversation, the typed text is not sent, and the page's click events are taken up. And it was only through the console that I realized that this error was the cause. Expect to be able to optimize the handling of this error, as well as I'm not sure why it causes the request to go wrong.
Bug Summary:
[Provide a brief but clear summary of the bug]
/api/chat/completed
500 Internal Server Error
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
in the process of typing a text chat

Environment

  • Open WebUI Version: [v0.3.10]
  • Ollama (if applicable): Not using Ollama Using the OpenAI API
Originally created by @zhangyongcun on GitHub (Jul 31, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4229 # Bug Report ## Description Calling /api/chat/completed at the end of a conversation occasionally results in a 500 Internal Server Error. When this error occurs, it makes it impossible to continue the conversation, the typed text is not sent, and the page's click events are taken up. And it was only through the console that I realized that this error was the cause. Expect to be able to optimize the handling of this error, as well as I'm not sure why it causes the request to go wrong. **Bug Summary:** [Provide a brief but clear summary of the bug] /api/chat/completed 500 Internal Server Error **Steps to Reproduce:** [Outline the steps to reproduce the bug. Be as detailed as possible.] in the process of typing a text chat ## Environment - **Open WebUI Version:** [v0.3.10] - **Ollama (if applicable):** Not using Ollama Using the OpenAI API
Author
Owner

@zhangyongcun commented on GitHub (Jul 31, 2024):

CleanShot 2024-07-31 at 18 11 12@2x

<!-- gh-comment-id:2260159767 --> @zhangyongcun commented on GitHub (Jul 31, 2024): ![CleanShot 2024-07-31 at 18 11 12@2x](https://github.com/user-attachments/assets/a8f2e90f-ee70-46bc-9c24-326580c30407)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13539