When I practices "Dify Plugin Development: Hello World Guide", the telegraph demo meets error:“ValueError: Error loading plugin configuration: 1 validation error for PluginConfiguration” #137

Open
opened 2026-02-16 00:20:03 -05:00 by yindo · 1 comment
Owner

Originally created by @gnsslee on GitHub (Jun 9, 2025).

Self Checks

To make sure we get to you in time, please check the following :)

  • 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."

Versions

  1. dify-plugin-daemon Version 0.1.1
  2. dify-api Version 1.4.1

Describe the bug
A clear and concise description of what the bug is.
when I run cmd:“python.exe -m main”, the telegraph demo meets error:“ValueError: Error loading plugin configuration: 1 validation error for PluginConfiguration”.

To Reproduce
Steps to reproduce the behavior:
Exactly follow the page:https://docs.dify.ai/plugin-dev-en/0211-getting-started-dify-tool "Quick Start\Dify Plugin Development: Hello World Guide", untill this step:

Image

Expected behavior
A clear and concise description of what you expected to happen.
"If everything is normal, you should see log information similar to the following, indicating that the plugin tool has been successfully loaded and connected to Dify"

Screenshots
If applicable, add screenshots to help explain your problem.
"Traceback (most recent call last):
File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\core\plugin_registration.py", line 106, in _load_plugin_configuration
self.configuration = PluginConfiguration(**file)
~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\pydantic\main.py", line 253, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for PluginConfiguration
resource.permission.storage.size
Input should be greater than or equal to 1024 [type=greater_than_equal, input_value=0, input_type=int]
For further information visit https://errors.pydantic.dev/2.11/v/greater_than_equal

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "G:\deepseekclient\difyplugin\telegraph\main.py", line 3, in
plugin = Plugin(DifyPluginEnv(MAX_REQUEST_TIMEOUT=120))
File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\plugin.py", line 44, in init
self.registration = PluginRegistration(config)
~~~~~~~~~~~~~~~~~~^^^^^^^^
File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\core\plugin_registration.py", line 83, in init
self._load_plugin_configuration()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\core\plugin_registration.py", line 126, in _load_plugin_configuration
raise ValueError(f"Error loading plugin configuration: {e!s}") from e
ValueError: Error loading plugin configuration: 1 validation error for PluginConfiguration
resource.permission.storage.size
Input should be greater than or equal to 1024 [type=greater_than_equal, input_value=0, input_type=int]
For further information visit https://errors.pydantic.dev/2.11/v/greater_than_equal
"

Additional context
Add any other context about the problem here.
Please check my plugin workplace folder uploaded.

telegraph.zip

Originally created by @gnsslee on GitHub (Jun 9, 2025). **Self Checks** To make sure we get to you in time, please check the following :) - [ ] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify-plugin-daemon/issues), including closed ones. - [ ] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [ ] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [ ] "Please do not modify this template :) and fill in all the required fields." **Versions** 1. dify-plugin-daemon Version 0.1.1 2. dify-api Version 1.4.1 **Describe the bug** A clear and concise description of what the bug is. when I run cmd:“python.exe -m main”, the telegraph demo meets error:“ValueError: Error loading plugin configuration: 1 validation error for PluginConfiguration”. **To Reproduce** Steps to reproduce the behavior: Exactly follow the page:https://docs.dify.ai/plugin-dev-en/0211-getting-started-dify-tool "Quick Start\Dify Plugin Development: Hello World Guide", untill this step: ![Image](https://github.com/user-attachments/assets/67653b0a-d2fb-48b4-a34f-1ed54270d01c) **Expected behavior** A clear and concise description of what you expected to happen. "If everything is normal, you should see log information similar to the following, indicating that the plugin tool has been successfully loaded and connected to Dify" **Screenshots** If applicable, add screenshots to help explain your problem. "Traceback (most recent call last): File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\core\plugin_registration.py", line 106, in _load_plugin_configuration self.configuration = PluginConfiguration(**file) ~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\pydantic\main.py", line 253, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) pydantic_core._pydantic_core.ValidationError: 1 validation error for PluginConfiguration resource.permission.storage.size Input should be greater than or equal to 1024 [type=greater_than_equal, input_value=0, input_type=int] For further information visit https://errors.pydantic.dev/2.11/v/greater_than_equal The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "G:\deepseekclient\difyplugin\telegraph\main.py", line 3, in <module> plugin = Plugin(DifyPluginEnv(MAX_REQUEST_TIMEOUT=120)) File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\plugin.py", line 44, in __init__ self.registration = PluginRegistration(config) ~~~~~~~~~~~~~~~~~~^^^^^^^^ File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\core\plugin_registration.py", line 83, in __init__ self._load_plugin_configuration() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "G:\deepseekclient\difyplugin\telegraph\venv\Lib\site-packages\dify_plugin\core\plugin_registration.py", line 126, in _load_plugin_configuration raise ValueError(f"Error loading plugin configuration: {e!s}") from e ValueError: Error loading plugin configuration: 1 validation error for PluginConfiguration resource.permission.storage.size Input should be greater than or equal to 1024 [type=greater_than_equal, input_value=0, input_type=int] For further information visit https://errors.pydantic.dev/2.11/v/greater_than_equal " **Additional context** Add any other context about the problem here. Please check my plugin workplace folder uploaded. [telegraph.zip](https://github.com/user-attachments/files/20652508/telegraph.zip)
yindo added the question label 2026-02-16 00:20:03 -05:00
Author
Owner

@joyatcloudfall commented on GitHub (Jun 12, 2025):

check manifest.yaml and set the size value >=1024

resource:
  memory: 268435456
  permission:
    tool:
      enabled: false
    model:
      enabled: false
      llm: false
      text_embedding: false
      rerank: false
      tts: false
      speech2text: false
      moderation: false
    node:
      enabled: false
    endpoint:
      enabled: false
    app:
      enabled: false
    storage:
      enabled: false
      size: 4098
@joyatcloudfall commented on GitHub (Jun 12, 2025): check manifest.yaml and set the size value >=1024 ``` resource: memory: 268435456 permission: tool: enabled: false model: enabled: false llm: false text_embedding: false rerank: false tts: false speech2text: false moderation: false node: enabled: false endpoint: enabled: false app: enabled: false storage: enabled: false size: 4098 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#137