Passing the conversation_id when calling the app in the plugin will cause the call to fail #19356

Closed
opened 2026-02-21 19:58:49 -05:00 by yindo · 0 comments
Owner

Originally created by @w2534073922 on GitHub (Oct 15, 2025).

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.6.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

my code,Call the app in the extension plugin, and the conversation_id will be used when there is a historical conversation.

response = self.session.app.chat.invoke(
                    app_id=plugin_settings.agent_app_id,
                    inputs=inputs_param,
                    query=robot_event.event_data.notify,
                    response_mode="blocking",
                    conversation_id= "" if memory is None else memory.conversation_id
                )

It works properly during remote debugging (INSTALL_METHOD=remote), but fails to execute chat.invoke when running the plugin in a Docker container on the server. The error message is as follows:

Traceback (most recent call last):
  File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/endpoints/popo_application_bot_callback.py", line 203, in call_agent
    response = self.session.app.chat.invoke(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/.venv/lib/python3.12/site-packages/dify_plugin/invocations/app/chat.py", line 55, in invoke
    for data in response:
  File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/.venv/lib/python3.12/site-packages/dify_plugin/core/runtime.py", line 315, in _full_duplex_backwards_invoke
    yield from self._line_converter_wrapper(reader.read(timeout_for_round=1), data_type)
  File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/.venv/lib/python3.12/site-packages/dify_plugin/core/runtime.py", line 209, in _line_converter_wrapper
    raise Exception("invocation exited without response")
Exception: invocation exited without response

✔️ Expected Behavior

When using self.session.app.chat.invoke in the plugin, it is expected that the passed conversation_id will work properly.

Actual Behavior

No response

Originally created by @w2534073922 on GitHub (Oct 15, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.6.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce my code,Call the app in the extension plugin, and the conversation_id will be used when there is a historical conversation. ``` response = self.session.app.chat.invoke( app_id=plugin_settings.agent_app_id, inputs=inputs_param, query=robot_event.event_data.notify, response_mode="blocking", conversation_id= "" if memory is None else memory.conversation_id ) ``` It works properly during remote debugging (INSTALL_METHOD=remote), but fails to execute chat.invoke when running the plugin in a Docker container on the server. The error message is as follows: ``` Traceback (most recent call last): File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/endpoints/popo_application_bot_callback.py", line 203, in call_agent response = self.session.app.chat.invoke( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/.venv/lib/python3.12/site-packages/dify_plugin/invocations/app/chat.py", line 55, in invoke for data in response: File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/.venv/lib/python3.12/site-packages/dify_plugin/core/runtime.py", line 315, in _full_duplex_backwards_invoke yield from self._line_converter_wrapper(reader.read(timeout_for_round=1), data_type) File "/app/storage/cwd/wangfeng/popo_open_platform-1.0.7@1adf51af55a56aa1095ec0131cfafe1b5fe80dba28b81da24636765956ba9347/.venv/lib/python3.12/site-packages/dify_plugin/core/runtime.py", line 209, in _line_converter_wrapper raise Exception("invocation exited without response") Exception: invocation exited without response ``` ### ✔️ Expected Behavior When using self.session.app.chat.invoke in the plugin, it is expected that the passed conversation_id will work properly. ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:58:49 -05:00
yindo closed this issue 2026-02-21 19:58:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19356