mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
---
|
||
dimensions:
|
||
type:
|
||
primary: operational
|
||
detail: maintenance
|
||
level: beginner
|
||
todo: 开发者(Developer / Contributor)应该充分测试后才上架, debug 不该是用户(Dify User / Consumer) 该做的事.
|
||
standard_title: Faq
|
||
language: zh
|
||
title: 常见问题
|
||
description: Author Allen 本文档回答了Dify插件开发和安装过程中的常见问题,包括插件上传失败的解决方法(修改author字段)以及如何处理插件安装过程中的验证异常(设置FORCE_VERIFYING_SIGNATURE环境变量)。
|
||
---
|
||
|
||
## 安装插件时提示上传失败如何处理?
|
||
|
||
**错误详情**:出现 `PluginDaemonBadRequestError: plugin_unique_identifier is not valid` 报错提示。
|
||
|
||
**解决办法**:将插件项目下的 `manifest.yaml` 文件和 `/provider` 路径下的 `.yaml` 文件中的 `author` 字段修改为 GitHub ID。
|
||
|
||
重新运行插件打包命令并安装新的插件包。
|
||
|
||
## 安装插件时遇到异常应如何处理?
|
||
|
||
**问题描述**:安装插件时遇到异常信息:`plugin verification has been enabled, and the plugin you want to install has a bad signature`,应该如何处理?
|
||
|
||
**解决办法**:在 `/docker/.env` 配置文件的末尾添加 `FORCE_VERIFYING_SIGNATURE=false` 字段,运行以下命令重启 Dify 服务:
|
||
|
||
```bash
|
||
cd docker
|
||
docker compose down
|
||
docker compose up -d
|
||
```
|
||
|
||
添加该字段后,Dify 平台将允许安装所有未在 Dify Marketplace 上架(审核)的插件,可能存在安全隐患。
|
||
|
||
建议在测试 / 沙箱环境内安装插件,确认安全后再安装至生产环境。
|
||
|
||
{/*
|
||
Contributing Section
|
||
DO NOT edit this section!
|
||
It will be automatically generated by the script.
|
||
*/}
|
||
|
||
<CardGroup cols="2">
|
||
<Card
|
||
title="编辑此页面"
|
||
icon="pen-to-square"
|
||
href="https://github.com/langgenius/dify-docs-mintlify/edit/main/plugin_dev_zh/0331-faq.zh.mdx"
|
||
>
|
||
通过直接提交修改来帮助改进文档内容
|
||
</Card>
|
||
<Card
|
||
title="提交问题"
|
||
icon="github"
|
||
href="https://github.com/langgenius/dify-docs-mintlify/issues/new?title=文档问题%3A%20faq&body=%23%23%20问题描述%0A%3C%21--%20请简要描述您发现的问题%20--%3E%0A%0A%23%23%20页面链接%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs-mintlify%2Fblob%2Fmain%2Fplugin_dev_zh%2F0331-faq.zh.mdx%0A%0A%23%23%20建议修改%0A%3C%21--%20如果有具体的修改建议,请在此说明%20--%3E%0A%0A%3C%21--%20感谢您对文档质量的关注!%20--%3E"
|
||
>
|
||
发现错误或有改进建议?请提交问题反馈
|
||
</Card>
|
||
</CardGroup>
|