CodeExecutionResponse with data: none #3746

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

Originally created by @AndyMik90 on GitHub (May 27, 2024).

Originally assigned to: @Yeuoly on GitHub.

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).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

When testing the code execution node in a workflow locally using local code startup, I got "1 validation error for CodeExecutionResponse data none is not an allowed value (type=type_error.none.not_allowed)" when testing the python sample function.

Setting data: Optional[Data] = Data() for the class CodeExecutionResponse(BaseModel) fixes this, but don't know if it's a valid fix?

✔️ Expected Behavior

Unsure.

Actual Behavior

1 validation error for CodeExecutionResponse data none is not an allowed value (type=type_error.none.not_allowed)

Originally created by @AndyMik90 on GitHub (May 27, 2024). Originally assigned to: @Yeuoly on GitHub. ### 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] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.8 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce When testing the code execution node in a workflow locally using local code startup, I got "1 validation error for CodeExecutionResponse data none is not an allowed value (type=type_error.none.not_allowed)" when testing the python sample function. Setting data: Optional[Data] = Data() for the class CodeExecutionResponse(BaseModel) fixes this, but don't know if it's a valid fix? ### ✔️ Expected Behavior Unsure. ### ❌ Actual Behavior 1 validation error for CodeExecutionResponse data none is not an allowed value (type=type_error.none.not_allowed)
yindo added the 🐞 bugstale labels 2026-02-21 18:01:31 -05:00
yindo closed this issue 2026-02-21 18:01:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3746