error: xxx is not a valid array. make sure all elements are of the same type. #10354

Closed
opened 2026-02-21 18:45:54 -05:00 by yindo · 0 comments
Owner

Originally created by @sunny920406 on GitHub (Mar 11, 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 search for existing issues, 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

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I choose the code node,the output type is Array[Object], the array item has one key location , the value is multi-dimension array, like this

 "location": {
                    "coordinates": [
                        [
                            [
                                12.71398946496943,
                                11.2420903714364
                            ],
                            [
                                22.71254819882226,
                                33.241489078614826
                            ]
                        ],
                        [
                            [
                                44.86401133323574,
                                55.266541299875783
                            ],
                            [
                                66.86387256433899,
                                77.26653050312981
                            ]
                        ]
]}

Image

Image

✔️ Expected Behavior

this node run correct

Actual Behavior

the node run error。like this

Image

Originally created by @sunny920406 on GitHub (Mar 11, 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 [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 (我已阅读并同意 [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 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I choose the code node,the output type is Array[Object], the array item has one key location , the value is multi-dimension array, like this ``` "location": { "coordinates": [ [ [ 12.71398946496943, 11.2420903714364 ], [ 22.71254819882226, 33.241489078614826 ] ], [ [ 44.86401133323574, 55.266541299875783 ], [ 66.86387256433899, 77.26653050312981 ] ] ]} ``` ![Image](https://github.com/user-attachments/assets/afb6c002-6530-4043-8668-3ab393c79374) ![Image](https://github.com/user-attachments/assets/499fded7-4bdf-4156-b63a-e9054986da9d) ### ✔️ Expected Behavior this node run correct ### ❌ Actual Behavior the node run error。like this ![Image](https://github.com/user-attachments/assets/01ae177c-e5ac-484c-9324-04a8942d3a8d)
yindo added the 🐞 bug label 2026-02-21 18:45:54 -05:00
yindo closed this issue 2026-02-21 18:45:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10354