From 8b5231b7ee1c047c995df7e066aaef173776d0b5 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Fri, 8 Nov 2024 17:27:16 +0800 Subject: [PATCH] fix: invalid key of marketplace response --- api/core/helper/marketplace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/helper/marketplace.py b/api/core/helper/marketplace.py index ba891ba959..743bef9316 100644 --- a/api/core/helper/marketplace.py +++ b/api/core/helper/marketplace.py @@ -26,4 +26,4 @@ def batch_fetch_plugin_manifests(plugin_ids: list[str]) -> Sequence[MarketplaceP url = str(URL(str(dify_config.MARKETPLACE_API_URL)) / "api/v1/plugins/batch") response = requests.post(url, json={"plugin_ids": plugin_ids}) response.raise_for_status() - return [MarketplacePluginDeclaration(**plugin) for plugin in response.json()["plugins"]] + return [MarketplacePluginDeclaration(**plugin) for plugin in response.json()["data"]["plugins"]]