streaming stop error during streaming chat #6078

Closed
opened 2026-02-21 18:13:58 -05:00 by yindo · 1 comment
Owner

Originally created by @Freschello2019 on GitHub (Oct 14, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.8.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have a agent thought running, and i wanna stop it immediately.
I have sent stop post to Dify http server.
I didn't received succeeded response. and http disconnect from Dify http server.
截屏2024-10-14 14 26 41

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Freschello2019 on GitHub (Oct 14, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.8.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I have a agent thought running, and i wanna stop it immediately. I have sent stop post to Dify http server. I didn't received succeeded response. and http disconnect from Dify http server. <img width="742" alt="截屏2024-10-14 14 26 41" src="https://github.com/user-attachments/assets/93977c37-becb-4c98-acc1-3f828f48a86a"> ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:13:58 -05:00
yindo closed this issue 2026-02-21 18:13:58 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 14, 2024):

@Freschello2019 Hello there! I'm here to help you with bugs, questions, and becoming a contributor. Let me know how I can assist you while you wait for a human maintainer.

I found a similar discussion regarding a streaming stop error in Dify. You might want to check out this discussion which is still open and might provide some insights [1].

The streaming stop error in version 0.8.2 could be related to the handling of QueueStopEvent in the _process_stream_response method. Issues in the _handle_stop method or output moderation logic might cause unexpected stop events. Ensure the response_mode is set correctly and check the SSE configuration for any misconfigurations [2][3].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 14, 2024): <!-- Greeting --> @Freschello2019 Hello there! I'm here to help you with bugs, questions, and becoming a contributor. Let me know how I can assist you while you wait for a human maintainer. <!-- Answer --> I found a similar discussion regarding a streaming stop error in Dify. You might want to check out this [discussion](https://github.com/langgenius/dify/discussions/6181) which is still open and might provide some insights <sup>[[1]](https://github.com/langgenius/dify/discussions/6181)</sup>. The streaming stop error in version 0.8.2 could be related to the handling of `QueueStopEvent` in the `_process_stream_response` method. Issues in the `_handle_stop` method or output moderation logic might cause unexpected stop events. Ensure the `response_mode` is set correctly and check the SSE configuration for any misconfigurations <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py)</sup><sup>[[3]](https://github.com/langgenius/dify/blob/main/web/app/components/develop/template/template_chat.zh.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6078