dify - 💡(How to fix) Fix Direct Chatflow / Workflow execution hangs with only `event: ping` after migration to 1.13.3, while Agent works normally [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35611Fetched 2026-04-28 06:50:30
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
1
Author
Timeline (top)
commented ×2closed ×1labeled ×1mentioned ×1

Error Message

  • Direct Workflow API calls should return a successful result or a clear error message.
  • If a workflow node, model provider, tool, knowledge base, plugin, or any other component fails, Dify should return an explicit error instead of keeping the request hanging indefinitely.
  • No visible error message is shown in the UI.
  • No error is returned by the API.

Code Example

event: ping
RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.13.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Environment

  • Dify version: 1.13.3
  • Previous Dify version: 1.10
  • Deployment type: Self-hosted
  • Network environment: Offline / internal network, no public internet access
  • Model service: Running normally
  • GPU status: GPU resources are not fully occupied
  • Affected app types:
    • Chatflow
    • Workflow
  • Unaffected app type:
    • Agent

Background

Originally, we were using Dify 1.10.

Later, we installed Dify 1.13.3 and migrated the data from Dify 1.10 to Dify 1.13.3.

Right after the migration was completed, the existing Workflows and Chatflows worked normally. The configured Workflow / Chatflow applications could chat and return responses without any issue.

However, after the service had been running for a period of time, direct Chatflow / Workflow execution started to hang intermittently.

The confusing part is that Agent applications still work normally at the same time.

✔️ Expected Behavior

When running a Chatflow or Workflow directly from the Dify console preview page or through the public API, the request should execute normally and return the workflow/chatflow result.

Expected behavior includes:

  • The Chatflow preview window should stop showing the loading state after execution finishes.
  • The streaming response should return normal workflow/chatflow events and final output.
  • Direct Workflow API calls should return a successful result or a clear error message.
  • Direct Chatflow execution should behave consistently with Agent execution.
  • If a workflow node, model provider, tool, knowledge base, plugin, or any other component fails, Dify should return an explicit error instead of keeping the request hanging indefinitely.
  • Logs from api, worker, and dify-plugin-daemon should contain enough information to identify the failed step if execution cannot continue.

❌ Actual Behavior

Direct Chatflow / Workflow execution intermittently gets stuck.

When the issue occurs:

  • In the Dify console preview page, the Chatflow remains in a loading state and never returns the final answer.
  • Direct API calls to Workflow / Chatflow hang indefinitely.
  • The streaming response only returns:
event: ping
  • No final response is returned.
  • No visible error message is shown in the UI.
  • No error is returned by the API.
  • The issue does not necessarily happen immediately after startup. It appears after the Dify service has been running for some time.

At the same time, Agent applications work normally:

  • Agent chat responds successfully.
  • Agent can call tools normally.
  • Agent can use knowledge bases normally.
  • Agent can invoke related workflows/chatflows and return results successfully.

This makes the issue appear to be limited to direct Chatflow / Workflow execution paths.

extent analysis

TL;DR

The most likely fix for the intermittent hanging of direct Chatflow/Workflow execution in Dify 1.13.3 is to investigate and address potential issues with the workflow/chatflow components, model providers, or plugins that are causing the requests to hang indefinitely.

Guidance

  • Review the logs from api, worker, and dify-plugin-daemon to identify any patterns or errors that may be related to the hanging requests.
  • Verify that the GPU resources are not being overutilized, as the issue appears after the service has been running for some time.
  • Check the configuration and implementation of the workflow/chatflow components, model providers, and plugins to ensure they are correctly handling errors and timeouts.
  • Test the direct Chatflow/Workflow execution with a minimal setup to isolate the issue and identify the root cause.

Example

No code snippet is provided as the issue is more related to the configuration and setup of the Dify environment.

Notes

The issue may be related to the migration from Dify 1.10 to 1.13.3, and it's possible that some components or plugins are not compatible with the new version. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround by implementing additional logging and monitoring to identify the root cause of the issue, and consider rolling back to a previous version if the issue is critical and cannot be resolved quickly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING