Get workflow run id detail endpoint in Service API failed when app mode is advanced-chat #13339

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

Originally created by @1betatsu on GitHub (Apr 25, 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

1.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • Make chat flow app
  • Call service api GET /workflows/run/{workflow_run_id}

✔️ Expected Behavior

  • Returns the detail of the workflow when I use not only workflow but also advanced-chat
  • This behavior would be consistent with console api GET /apps/{app_id}/workflow-runs/{workflow_run_id}

Actual Behavior

  • The api returns not_workflow_app
Originally created by @1betatsu on GitHub (Apr 25, 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 1.3.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce - Make chat flow app - Call service api `GET /workflows/run/{workflow_run_id}` ### ✔️ Expected Behavior - Returns the detail of the workflow when I use not only workflow but also advanced-chat - This behavior would be consistent with console api `GET /apps/{app_id}/workflow-runs/{workflow_run_id}` ### ❌ Actual Behavior - The api returns `not_workflow_app`
yindo added the 🐞 buggood first issue🌊 feat:workflow labels 2026-02-21 19:11:43 -05:00
yindo closed this issue 2026-02-21 19:11:43 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 25, 2025):

Hello @1betatsu! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you on your journey as a contributor. I'm here while you wait for a human maintainer. How can I assist you today?

The not_workflow_app error occurs when the GET /workflows/run/{workflow_run_id} endpoint is accessed with an app mode that is not set to AppMode.WORKFLOW. This endpoint is designed to return this error if the app_mode of the app_model is not AppMode.WORKFLOW [1].

To resolve this issue, ensure that the app mode is correctly set to AppMode.WORKFLOW when accessing this endpoint. If you need to use the advanced-chat mode, you might need to adjust the implementation or configuration to accommodate this mode, as the current setup specifically checks for the WORKFLOW mode.

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 (Apr 25, 2025): <!-- Greeting --> Hello @1betatsu! I'm [Dosu](https://dosu.dev), your friendly bot here to help you solve bugs, answer questions, and guide you on your journey as a contributor. I'm here while you wait for a human maintainer. How can I assist you today? <!-- Answer --> The `not_workflow_app` error occurs when the `GET /workflows/run/{workflow_run_id}` endpoint is accessed with an app mode that is not set to `AppMode.WORKFLOW`. This endpoint is designed to return this error if the `app_mode` of the `app_model` is not `AppMode.WORKFLOW` <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/controllers/service_api/app/workflow.py)</sup>. To resolve this issue, ensure that the app mode is correctly set to `AppMode.WORKFLOW` when accessing this endpoint. If you need to use the `advanced-chat` mode, you might need to adjust the implementation or configuration to accommodate this mode, as the current setup specifically checks for the `WORKFLOW` mode. <!-- 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/e207e5c0-2914-4440-b5f4-05dbfe316a81?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/e207e5c0-2914-4440-b5f4-05dbfe316a81?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/e207e5c0-2914-4440-b5f4-05dbfe316a81?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/e207e5c0-2914-4440-b5f4-05dbfe316a81?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e207e5c0-2914-4440-b5f4-05dbfe316a81?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/e207e5c0-2914-4440-b5f4-05dbfe316a81?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e207e5c0-2914-4440-b5f4-05dbfe316a81?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#13339