Prompt word generator has no response #12342

Closed
opened 2026-02-21 19:06:59 -05:00 by yindo · 1 comment
Owner

Originally created by @IAMJOYBO on GitHub (Mar 29, 2025).

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

v1.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Click on generate. When the state on the right exceeds about 2 minutes, it will return to its initial state, but the LLM large model is still generating results at this time. As shown in the following figure:

Image

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @IAMJOYBO on GitHub (Mar 29, 2025). ### 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 v1.1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Click on generate. When the state on the right exceeds about 2 minutes, it will return to its initial state, but the LLM large model is still generating results at this time. As shown in the following figure: ![Image](https://github.com/user-attachments/assets/8a7a0f75-b4ad-49ec-bb91-40ccae337c95) ![Image](https://github.com/user-attachments/assets/d7e117c6-a543-4faf-a4ea-822360f2c80f) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 19:06:59 -05:00
yindo closed this issue 2026-02-21 19:06:59 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 29, 2025):

The issue you're experiencing with the prompt word generator not responding and resetting after about 2 minutes could be related to the timeout settings in your self-hosted environment. By default, the Dify platform sets a timeout for text generation tasks to 60 seconds (or 60,000 milliseconds) [1]. If the task takes longer than this, it might be terminated prematurely.

To address this, you can adjust the timeout settings by modifying the environment variable NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS to a higher value that accommodates your task's duration. This can be done by setting the environment variable in your Docker configuration or by adjusting the attribute in the document body if applicable.

Additionally, ensure that your logging and error handling configurations are set up to capture detailed information about the process, which can help diagnose any underlying issues [2]. If the problem persists, consider reviewing the retry and error recovery settings to ensure they are configured to handle long-running tasks effectively [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 29, 2025): <!-- Answer --> The issue you're experiencing with the prompt word generator not responding and resetting after about 2 minutes could be related to the timeout settings in your self-hosted environment. By default, the Dify platform sets a timeout for text generation tasks to 60 seconds (or 60,000 milliseconds) <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/config/index.ts)</sup>. If the task takes longer than this, it might be terminated prematurely. To address this, you can adjust the timeout settings by modifying the environment variable `NEXT_PUBLIC_TEXT_GENERATION_TIMEOUT_MS` to a higher value that accommodates your task's duration. This can be done by setting the environment variable in your Docker configuration or by adjusting the attribute in the document body if applicable. Additionally, ensure that your logging and error handling configurations are set up to capture detailed information about the process, which can help diagnose any underlying issues <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/callbacks/logging_callback.py)</sup>. If the problem persists, consider reviewing the retry and error recovery settings to ensure they are configured to handle long-running tasks effectively <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/llm.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/526889c8-a956-46a8-8482-a11fcaaf7c61?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12342