Skip to content

Bundle with marketplace/github dependencies fails to install despite 200 OK response #591

@takumi-ricoh

Description

@takumi-ricoh

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

  1. Initialize a bundle:

    ./dify-plugin-linux-amd64 bundle init
    # Bundle name: my_bundle, Author: test
  2. Add marketplace dependency:

    ./dify-plugin-linux-amd64 bundle append marketplace my_bundle --marketplace_pattern=langgenius/openai:0.2.8
  3. Package the bundle:

    ./dify-plugin-linux-amd64 bundle package ./my_bundle
  4. 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

  1. The API endpoint POST /console/api/workspaces/current/plugin/upload/bundle returns 200 OK
  2. However, the UI shows "Plugin loading error" (プラグインの読み込みエラー) for each dependency
  3. 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

Image

(UI shows "プラグインの読み込みエラー - このプラグインはインストールされません" for each dependency)

Additional notes

  1. The duplicate entries in the response body suggest a parsing or processing bug
  2. Direct installation of .difypkg files works correctly - only bundle dependencies fail
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions