Replies: 1 comment
-
|
Hi @DiaJB! I'm Dosu and I’m helping the dify team. The "Run Failed: 'unknown'" error after long LLM outputs in chatflow is almost always caused by an exception during streaming or post-processing in the backend. If the exception message is empty or generic, the UI just shows "unknown" as the error. This is not directly related to text length or timeout settings—those changes typically won't fix it. Common causes include: plugin or model backend returning an unexpected response (like None instead of an iterable), response parsing errors, or the streaming HTTP connection being closed prematurely (e.g., ChunkedEncodingError) source. Some plugins or models (like DeepSeek V3.1 with tongyi, Qwen with openai_api_compatible) have known issues with output loss or incomplete streaming due to how they handle streamed output source. Here’s what you can do:
If the error persists, collect the backend logs at the time of failure—look for exceptions in the LLM node streaming or post-processing path. This will help pinpoint the root cause and whether it’s a plugin/model bug or an infrastructure issue. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
In chatflow, when an LLM node continuously outputs a long piece of text, its streaming output process can be observed on the frontend. However, once it finishes outputting, the content disappears and an error is reported: "Run Failed: 'unknown'".My Dify instance is deployed via Docker. I have tried modifying certain parameters in .envand docker-compose.yaml—including those related to text length limits and TIMEOUT settings—but none of these adjustments resolved the issue.
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions