Failed to transform agent message: req_id: 3c61fae06e PluginInvokeError: {"args":{},"error_type":"TypeError","message":"'int' object is not a mapping"} #20889

Closed
opened 2026-02-21 20:09:40 -05:00 by yindo · 4 comments
Owner

Originally created by @669zzj on GitHub (Dec 9, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.8.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image Hi, I found that when using the React method, if the query contains numbers, the agent's response occasionally fails. The tool's input method has been set to user input, and the input variables have also been configured.

✔️ Expected Behavior

sometimes it succeed like...

Image

Actual Behavior

mostly it like this

Image
Originally created by @669zzj on GitHub (Dec 9, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.8.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="375" height="132" alt="Image" src="https://github.com/user-attachments/assets/f9b03eca-906a-4298-a45c-b69c48c55050" /> <img width="360" height="351" alt="Image" src="https://github.com/user-attachments/assets/a00fda39-a502-4907-bddd-6aa6c09ba6a6" /> Hi, I found that when using the React method, if the query contains numbers, the agent's response occasionally fails. The tool's input method has been set to user input, and the input variables have also been configured. ### ✔️ Expected Behavior sometimes it succeed like... <img width="783" height="390" alt="Image" src="https://github.com/user-attachments/assets/ff2562fa-8b6b-467c-a111-4c549886217e" /> ### ❌ Actual Behavior mostly it like this <img width="399" height="357" alt="Image" src="https://github.com/user-attachments/assets/0d60fa22-d362-42b1-8116-323f33f053fc" />
yindo added the 🐞 bug label 2026-02-21 20:09:40 -05:00
yindo closed this issue 2026-02-21 20:09:40 -05:00
Author
Owner

@fatelei commented on GitHub (Dec 9, 2025):

give me your dsl

@fatelei commented on GitHub (Dec 9, 2025): give me your dsl
Author
Owner

@Blackoutta commented on GitHub (Dec 24, 2025):

same problem here, any process?

@Blackoutta commented on GitHub (Dec 24, 2025): same problem here, any process?
Author
Owner

@fatelei commented on GitHub (Dec 24, 2025):

which plugin do you use

@fatelei commented on GitHub (Dec 24, 2025): which plugin do you use
Author
Owner

@669zzj commented on GitHub (Dec 25, 2025):

Adding constraints in the prompt temporarily solved the problem, requiring numbers to be wrapped as strings in the JSON object.

@669zzj commented on GitHub (Dec 25, 2025): Adding constraints in the prompt temporarily solved the problem, requiring numbers to be wrapped as strings in the JSON object.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20889