-
Notifications
You must be signed in to change notification settings - Fork 276
Description
Self Checks
- I have searched for existing issues, including closed ones.
- I confirm that I am using English to submit this report.
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/bundlereturns 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.difypkgScreenshots
(UI shows "プラグインの読み込みエラー - このプラグインはインストールされません" for each dependency)
Additional notes
- The duplicate entries in the response body suggest a parsing or processing bug
- Direct installation of
.difypkgfiles works correctly - only bundle dependencies fail - The documentation at https://docs.dify.ai/en/develop-plugin/features-and-specs/advanced-development/bundle references
dify-plugincommand, but the actual CLI binary is named differently (e.g.,dify-plugin-linux-amd64). Documentation update may be needed.