Failed to transform agent message #267

Closed
opened 2026-02-16 10:18:40 -05:00 by yindo · 3 comments
Owner

Originally created by @YoFoon on GitHub (May 9, 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 Dify issues & Dify Official Plugins, 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

1.3.1

Plugin version

0.1.5

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [deepseek] Error: PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 400: {"error":{"message":"Invalid 'tools[16].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 400: {"error":{"message":"Invalid 'tools[16].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}"}"}

Our function name is api.ivoice.output_cargoexist. Does it mean that regular matching cannot be found

✔️ Error log

No response

Originally created by @YoFoon on GitHub (May 9, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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 1.3.1 ### Plugin version 0.1.5 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Failed to transform agent message: PluginInvokeError: {"args":{},"error_type":"Exception","message":"read llm model failed: request failed: [deepseek] Error: PluginInvokeError: {"args":{"description":"[models] Error: API request failed with status code 400: {\"error\":{\"message\":\"Invalid 'tools[16].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.\",\"type\":\"invalid_request_error\",\"param\":null,\"code\":\"invalid_request_error\"}}"},"error_type":"InvokeError","message":"[models] Error: API request failed with status code 400: {\"error\":{\"message\":\"Invalid 'tools[16].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.\",\"type\":\"invalid_request_error\",\"param\":null,\"code\":\"invalid_request_error\"}}"}"} Our function name is` api.ivoice.output_cargoexist`. Does it mean that regular matching cannot be found ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:18:40 -05:00
yindo closed this issue 2026-02-16 10:18:40 -05:00
Author
Owner

@YoFoon commented on GitHub (May 9, 2025):

Image

@YoFoon commented on GitHub (May 9, 2025): ![Image](https://github.com/user-attachments/assets/0302f9df-21fb-4218-a776-e0f2497a2e61)
Author
Owner

@huynhbaobk commented on GitHub (May 16, 2025):

+1 Same problem

@huynhbaobk commented on GitHub (May 16, 2025): +1 Same problem
Author
Owner

@dosubot[bot] commented on GitHub (Aug 18, 2025):

Hi, @YoFoon. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported an error "Failed to transform agent message" caused by an invalid function name containing a dot ("api.ivoice.output_cargoexist").
  • The dot character in the function name violates the required naming pattern, causing a 400 status API request failure.
  • Another user confirmed experiencing the same issue.
  • The root cause was identified as the dot character in the function name.
  • The issue was resolved by removing or replacing the dot in the function name.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository.
  • If it is, you can keep the discussion open by commenting on this issue; otherwise, I will automatically close it in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 18, 2025): Hi, @YoFoon. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported an error "Failed to transform agent message" caused by an invalid function name containing a dot ("api.ivoice.output_cargoexist"). - The dot character in the function name violates the required naming pattern, causing a 400 status API request failure. - Another user confirmed experiencing the same issue. - The root cause was identified as the dot character in the function name. - The issue was resolved by removing or replacing the dot in the function name. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository. - If it is, you can keep the discussion open by commenting on this issue; otherwise, I will automatically close it in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#267