feishu_group_bot return not a valid UUID #8594

Closed
opened 2026-02-21 18:26:30 -05:00 by yindo · 2 comments
Owner

Originally created by @qiuyeqiang on GitHub (Feb 25, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I plan to use the robot function of Feishu. I have obtained the webhook of the robot and it can be called normally using Python locally.
However, when I use it on Dify, an error occurs, and the error message is ""feishu_group_bot": "Invalid parameter hook_key $https://open.feishu.cn/open-apis/bot/v2/hook/XXXXX, not a valid UUID".

I have found a similar issue https://github.com/langgenius/dify/issues/7374, but the problem hasn't been solved on that side.

✔️ Expected Behavior

{"content": "This is a test msg.", "hook_key": "https://open.feishu.cn/open-apis/bot/v2/hook/XXXX", "message_type": "text"}

Actual Behavior

"Invalid parameter hook_key $https://open.feishu.cn/open-apis/bot/v2/hook/XXXXX, not a valid UUID"

Originally created by @qiuyeqiang on GitHub (Feb 25, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I plan to use the robot function of Feishu. I have obtained the webhook of the robot and it can be called normally using Python locally. However, when I use it on Dify, an error occurs, and the error message is ""feishu_group_bot": "Invalid parameter hook_key $https://open.feishu.cn/open-apis/bot/v2/hook/XXXXX, not a valid UUID". I have found a similar issue https://github.com/langgenius/dify/issues/7374, but the problem hasn't been solved on that side. ### ✔️ Expected Behavior {"content": "This is a test msg.", "hook_key": "https://open.feishu.cn/open-apis/bot/v2/hook/XXXX", "message_type": "text"} ### ❌ Actual Behavior "Invalid parameter hook_key $https://open.feishu.cn/open-apis/bot/v2/hook/XXXXX, not a valid UUID"
yindo added the 🐞 bug label 2026-02-21 18:26:30 -05:00
yindo closed this issue 2026-02-21 18:26:30 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 25, 2025):

Hey @qiuyeqiang, I'm here to assist you with bugs, questions, and more! Let's squash those bugs together and make things run smoothly 😄

A similar issue has been reported regarding the "Invalid parameter hook_key not a valid UUID" error when using a Feishu bot webhook with Dify version 0.15.3. The error occurs because the hook_key is being validated as a UUID in the WecomGroupBotTool class. The function is_valid_uuid(hook_key) checks if the hook_key is a valid UUID, and if it is not, the error is triggered.

To resolve this, ensure that the hook_key you are using is in a valid UUID format when invoking the tool in Dify [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 25, 2025): <!-- Greeting --> Hey @qiuyeqiang, I'm here to assist you with bugs, questions, and more! Let's squash those bugs together and make things run smoothly 😄 <!-- Answer --> A similar issue has been reported regarding the "Invalid parameter hook_key not a valid UUID" error when using a Feishu bot webhook with Dify version 0.15.3. The error occurs because the `hook_key` is being validated as a UUID in the `WecomGroupBotTool` class. The function `is_valid_uuid(hook_key)` checks if the `hook_key` is a valid UUID, and if it is not, the error is triggered. To resolve this, ensure that the `hook_key` you are using is in a valid UUID format when invoking the tool in Dify <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/tools/provider/builtin/wecom/tools/wecom_group_bot.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=other)</sup>
Author
Owner

@qiuyeqiang commented on GitHub (Feb 25, 2025):

Hey @qiuyeqiang, I'm here to assist you with bugs, questions, and more! Let's squash those bugs together and make things run smoothly 😄

A similar issue has been reported regarding the "Invalid parameter hook_key not a valid UUID" error when using a Feishu bot webhook with Dify version 0.15.3. The error occurs because the hook_key is being validated as a UUID in the WecomGroupBotTool class. The function is_valid_uuid(hook_key) checks if the hook_key is a valid UUID, and if it is not, the error is triggered.

To resolve this, ensure that the hook_key you are using is in a valid UUID format when invoking the tool in Dify [1].

To continue talking to Dosu, mention @dosu.

Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosu. I'm sure my hook_key is correct. i have test the hook_key with the following code,it works well

import requests
import json
 

url = f"https://open.feishu.cn/open-apis/bot/v2/hook/XXX"

headers = {'Content-Type': 'application/json'}
data = {
    "msg_type": "text",
    "content": {
        "text": "Hello, Feishu!"
    }
}

response = requests.post(url, headers=headers, data=json.dumps(data))

print(response.text)
@qiuyeqiang commented on GitHub (Feb 25, 2025): > Hey [@qiuyeqiang](https://github.com/qiuyeqiang), I'm here to assist you with bugs, questions, and more! Let's squash those bugs together and make things run smoothly 😄 > > A similar issue has been reported regarding the "Invalid parameter hook_key not a valid UUID" error when using a Feishu bot webhook with Dify version 0.15.3. The error occurs because the `hook_key` is being validated as a UUID in the `WecomGroupBotTool` class. The function `is_valid_uuid(hook_key)` checks if the `hook_key` is a valid UUID, and if it is not, the error is triggered. > > To resolve this, ensure that the `hook_key` you are using is in a valid UUID format when invoking the tool in Dify [[1]](https://github.com/langgenius/dify/blob/main/api/core/tools/provider/builtin/wecom/tools/wecom_group_bot.py). > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu)._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4fd12cd5-d679-47c8-a2dc-59f27f02acd7?feedback_type=other) [@dosu](https://github.com/dosu). I'm sure my hook_key is correct. i have test the hook_key with the following code,it works well ``` import requests import json url = f"https://open.feishu.cn/open-apis/bot/v2/hook/XXX" headers = {'Content-Type': 'application/json'} data = { "msg_type": "text", "content": { "text": "Hello, Feishu!" } } response = requests.post(url, headers=headers, data=json.dumps(data)) print(response.text) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8594