Skip to content

tool invoke error: Instance <Account at 0x7f094a2ed7c0> is not bound toa Session; attribute refresh operation cannot proceed #24702

@xiyanluo

Description

@xiyanluo

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.0

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Publish the workflow as a tool, and then use an agent to execute the error message. There is no problem with independent workflow execution。
I have searched for other posts with similar issues, but they only mentioned the problem with the account object. How can I make the necessary changes? Can't this variable type be modified in the workflow?

response
f"getDouYinvideo": "tool invoke error: Instance <Account at 0x7f094a2ed7c0> is not bound toa Session; attribute refresh operation cannot proceed (Background on this error at:https://sqlalche.me/e/20/bhk3)"}

✔️ Expected Behavior

Call the tool normally by the agent

❌ Actual Behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions