You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
CODE_MAX_STRING_ARRAY_LENGTH parameter is invalid.I noticed a similar error in the previous issues in version 0.7.2, but now it appears again in version 0.10.2
✔️ Expected Behavior
The code node verifies the set length when returning the string array
❌ Actual Behavior
The text was updated successfully, but these errors were encountered:
@nooooom Hello there! I'm here to help you with bugs, answer questions, and guide you on becoming a contributor. Let's work together to resolve the issue you're facing while we wait for a human maintainer.
The CODE_MAX_STRING_ARRAY_LENGTH parameter is used to enforce a maximum length constraint on string arrays during code execution. If the length of a string array exceeds the specified maximum (default is 30), it raises an OutputValidationError[1][2].
In your case, it seems like the parameter is being considered invalid, which might be due to the string array exceeding this maximum length. Ensure that the string arrays being processed do not exceed the length specified by CODE_MAX_STRING_ARRAY_LENGTH. If you need to allow longer arrays, you can adjust this parameter in your configuration, particularly in the Docker setup, where it defaults to 30 unless specified otherwise [3].
If this issue was present in version 0.7.2 and has reappeared in version 0.10.2, it might be worth checking if there have been any recent changes or commits related to this parameter that could have reintroduced the issue. Unfortunately, I couldn't find specific changes between these versions regarding this parameter [4].
Self Checks
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
CODE_MAX_STRING_ARRAY_LENGTH parameter is invalid.I noticed a similar error in the previous issues in version 0.7.2, but now it appears again in version 0.10.2
✔️ Expected Behavior
The code node verifies the set length when returning the string array
❌ Actual Behavior
The text was updated successfully, but these errors were encountered: