Encountering an Error When Installing a Self-Developed Extension Plugin on the Community Edition (linebot) #34

Closed
opened 2026-02-15 21:15:23 -05:00 by yindo · 1 comment
Owner

Originally created by @kevintsai1202 on GitHub (Apr 30, 2025).

My extension plugin runs normally on the cloud edition, but after installing it on the community edition, an error occurs when opening the settings. The error log is as follows:

Settings configured:
FORCE_VERIFYING_SIGNATURE=false
ENDPOINT_URL_TEMPLATE=https://domain.xxx/e/{hook_id}

LOG:

2025-05-01 02:32:46,059.059 ERROR [Dummy-11] [app.py:875] - Exception on /console/api/workspaces/current/endpoints/list/plugin [GET]

Traceback (most recent call last):

  File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request

    rv = self.dispatch_request()

         ^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request

    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper

    resp = resource(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view

    return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request

    resp = meth(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/wraps.py", line 199, in decorated

    return view(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/libs/login.py", line 94, in decorated_view

    return current_app.ensure_sync(func)(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/wraps.py", line 31, in decorated

    return view(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/workspace/endpoint.py", line 92, in get

    "endpoints": EndpointService.list_endpoints_for_single_plugin(

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/services/plugin/endpoint_service.py", line 26, in list_endpoints_for_single_plugin

    return PluginEndpointClient().list_endpoints_for_single_plugin(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/core/plugin/impl/endpoint.py", line 44, in list_endpoints_for_single_plugin

    return self._request_with_plugin_daemon_response(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/core/plugin/impl/base.py", line 150, in _request_with_plugin_daemon_response

    self._handle_plugin_daemon_error(error.error_type, error.message)

  File "/app/api/core/plugin/impl/base.py", line 225, in _handle_plugin_daemon_error

    raise PluginDaemonInternalServerError(description=message)

core.plugin.impl.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: failed to decrypt settings: data is nil
Originally created by @kevintsai1202 on GitHub (Apr 30, 2025). My extension plugin runs normally on the cloud edition, but after installing it on the community edition, an error occurs when opening the settings. The error log is as follows: Settings configured: FORCE_VERIFYING_SIGNATURE=false ENDPOINT_URL_TEMPLATE=https://domain.xxx/e/{hook_id} LOG: ``` 2025-05-01 02:32:46,059.059 ERROR [Dummy-11] [app.py:875] - Exception on /console/api/workspaces/current/endpoints/list/plugin [GET] Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 199, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/libs/login.py", line 94, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 31, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/workspace/endpoint.py", line 92, in get "endpoints": EndpointService.list_endpoints_for_single_plugin( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/services/plugin/endpoint_service.py", line 26, in list_endpoints_for_single_plugin return PluginEndpointClient().list_endpoints_for_single_plugin( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/plugin/impl/endpoint.py", line 44, in list_endpoints_for_single_plugin return self._request_with_plugin_daemon_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/plugin/impl/base.py", line 150, in _request_with_plugin_daemon_response self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/impl/base.py", line 225, in _handle_plugin_daemon_error raise PluginDaemonInternalServerError(description=message) core.plugin.impl.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: failed to decrypt settings: data is nil ```
yindo closed this issue 2026-02-15 21:15:23 -05:00
Author
Owner

@Mairuis commented on GitHub (Dec 9, 2025):

Hi @kevintsai1202,

Thanks for reporting this issue. Based on the error log, this appears to be an issue with the Dify main application or the plugin daemon, not the SDK itself.

The error PluginDaemonInternalServerError: failed to decrypt settings: data is nil indicates a problem with the endpoint settings encryption/decryption in the Dify backend.

This issue should be reported in the main Dify repository:

Please provide the following information when creating the issue there:

  1. Dify version
  2. Plugin daemon version
  3. Your plugin's manifest.yaml and endpoint configuration
  4. Steps to reproduce

Closing this issue as it's not related to the SDK. Thank you for your understanding!

@Mairuis commented on GitHub (Dec 9, 2025): Hi @kevintsai1202, Thanks for reporting this issue. Based on the error log, this appears to be an issue with the Dify main application or the plugin daemon, not the SDK itself. The error `PluginDaemonInternalServerError: failed to decrypt settings: data is nil` indicates a problem with the endpoint settings encryption/decryption in the Dify backend. This issue should be reported in the main Dify repository: - https://github.com/langgenius/dify/issues Please provide the following information when creating the issue there: 1. Dify version 2. Plugin daemon version 3. Your plugin's `manifest.yaml` and endpoint configuration 4. Steps to reproduce Closing this issue as it's not related to the SDK. Thank you for your understanding!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#34