mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-21 17:25:23 -04:00
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
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gnsslee on GitHub (Jun 9, 2025).
Self Checks
To make sure we get to you in time, please check the following :)
Versions
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:
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
@joyatcloudfall commented on GitHub (Jun 12, 2025):
check manifest.yaml and set the size value >=1024