输入参数:
{
"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