dify icon indicating copy to clipboard operation
dify copied to clipboard

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

Open 669zzj opened this issue 1 month ago • 3 comments

Self Checks

  • [x] I have read the Contributing Guide and Language Policy.
  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing 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

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

669zzj avatar Dec 09 '25 08:12 669zzj

give me your dsl

fatelei avatar Dec 09 '25 14:12 fatelei

same problem here, any process?

Blackoutta avatar Dec 24 '25 07:12 Blackoutta

which plugin do you use

fatelei avatar Dec 24 '25 08:12 fatelei

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

669zzj avatar Dec 25 '25 06:12 669zzj