Self Checks
Environment
- Dify version: Self-hosted (Docker)
- dify-plugin CLI version: v0.5.3
- OS: Linux (Ubuntu)
Description
When installing a bundle (.difybndl) that contains marketplace or github dependencies via the Dify UI ("Install from local package file"), the installation fails with "Plugin loading error" (プラグインの読み込みエラー), even though the API returns HTTP 200 OK.
Note: Installing a standalone .difypkg file directly works without issues. Only bundle dependencies (marketplace/github type) fail.
Steps to reproduce
-
Initialize a bundle:
./dify-plugin-linux-amd64 bundle init
# Bundle name: my_bundle, Author: test
-
Add marketplace dependency:
./dify-plugin-linux-amd64 bundle append marketplace my_bundle --marketplace_pattern=langgenius/openai:0.2.8
-
Package the bundle:
./dify-plugin-linux-amd64 bundle package ./my_bundle
-
In Dify UI: Plugins → Install Plugin → Local Package File → Select my_bundle.difybndl
Expected behavior
The bundle should be parsed, marketplace dependencies should be resolved and downloaded, and all plugins should be installed successfully.
Actual behavior
- The API endpoint
POST /console/api/workspaces/current/plugin/upload/bundle returns 200 OK
- However, the UI shows "Plugin loading error" (プラグインの読み込みエラー) for each dependency
- The response body contains duplicate entries for the same plugin:
[
{
"type": "marketplace",
"value": {
"organization": "langgenius",
"plugin": "openai",
"version": "0.2.8"
}
},
{
"type": "marketplace",
"value": {
"organization": "langgenius",
"plugin": "openai",
"version": "0.2.8"
}
}
]
manifest.yaml content
name: my_bundle
labels:
en_US: my_bundle
ja_JP: my_bundle
zh_Hans: my_bundle
pt_BR: my_bundle
description:
en_US: my_bundle
ja_JP: my_bundle
zh_Hans: my_bundle
pt_BR: my_bundle
icon: icon.svg
version: 0.0.1
author: test
type: bundle
dependencies:
- type: marketplace
value:
marketplace_pattern: langgenius/openai:0.2.8
tags: []
GitHub dependency also fails
The same error occurs with github type dependency:
dependencies:
- type: github
value:
repo_pattern: langgenius/openai:0.2.8/openai.difypkg
Screenshots
(UI shows "プラグインの読み込みエラー - このプラグインはインストールされません" for each dependency)
Additional notes
- The duplicate entries in the response body suggest a parsing or processing bug
- Direct installation of
.difypkg files works correctly - only bundle dependencies fail
- The documentation at https://docs.dify.ai/en/develop-plugin/features-and-specs/advanced-development/bundle references
dify-plugin command, but the actual CLI binary is named differently (e.g., dify-plugin-linux-amd64). Documentation update may be needed.
Self Checks
Environment
Description
When installing a bundle (.difybndl) that contains marketplace or github dependencies via the Dify UI ("Install from local package file"), the installation fails with "Plugin loading error" (プラグインの読み込みエラー), even though the API returns HTTP 200 OK.
Note: Installing a standalone .difypkg file directly works without issues. Only bundle dependencies (marketplace/github type) fail.
Steps to reproduce
Initialize a bundle:
./dify-plugin-linux-amd64 bundle init # Bundle name: my_bundle, Author: testAdd marketplace dependency:
Package the bundle:
In Dify UI: Plugins → Install Plugin → Local Package File → Select
my_bundle.difybndlExpected behavior
The bundle should be parsed, marketplace dependencies should be resolved and downloaded, and all plugins should be installed successfully.
Actual behavior
POST /console/api/workspaces/current/plugin/upload/bundlereturns 200 OK[ { "type": "marketplace", "value": { "organization": "langgenius", "plugin": "openai", "version": "0.2.8" } }, { "type": "marketplace", "value": { "organization": "langgenius", "plugin": "openai", "version": "0.2.8" } } ]manifest.yaml content
GitHub dependency also fails
The same error occurs with github type dependency:
Screenshots
(UI shows "プラグインの読み込みエラー - このプラグインはインストールされません" for each dependency)
Additional notes
.difypkgfiles works correctly - only bundle dependencies faildify-plugincommand, but the actual CLI binary is named differently (e.g.,dify-plugin-linux-amd64). Documentation update may be needed.