Skip to content

代码节点输入参数有null后报错 #2618

@cqs1208

Description

@cqs1208

输入参数:
{
"input": "fdsa",
"lists": null
}

报错输出
{
"$error": "Function execution failed, please check the code of the function. Detail: exec failed, stdout=, stderr=Traceback (most recent call last):\n File "/lib/python312.zip/_pyodide/_base.py", line 597, in eval_code_async\n await CodeRunner(\n File "/lib/python312.zip/_pyodide/_base.py", line 411, in run_async\n coroutine = eval(self.code, globals, locals)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "", line 13, in \nNameError: name 'null' is not defined\n, sandbox_err="
}

参数中 lists 为null时 就会报错 非得改成 [] 才正常。 但是很多情况参数的值就是null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions