Skip to content

Chatflow use Array[file] as iteration node input parameter made AssertionError("this statement should be unreachable.") #28172

@RustRookie-coder

Description

@RustRookie-coder

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

First step: create an input parameter named Files and type Array[File]
Second step: create node iteration and set input Files
Then run whole chatflow

✔️ Expected Behavior

No error and run test success

❌ Actual Behavior

Check log raise AssertionError("this statement should be unreachable.")

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