docker-n8n-python icon indicating copy to clipboard operation
docker-n8n-python copied to clipboard

n8n 0.198.2 “Code” Node and ”Python” Node compatibility

Open Canon88 opened this issue 3 years ago • 0 comments

Hi, i update my n8n-python version to 0.198.2, i find "Code" Node cannot receive data from "Python" Node as input. See my example: Workflow image

Simulation data

  • Set Node Simulation data image
  • Python Node Simulation data image

Code Node image

Run Workflow

  • Set Node -> Code Node it's OK. image

  • Python Node -> Code Node not work, i see err. image image

ERROR: Unknown top-level item key: ioc [item 0]
Access the properties of an item under `.json`, e.g. `item.json`
 Details
Item Index: 0


Error: Unknown top-level item key: ioc [item 0]
    at /usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/Sandbox.js:174:19
    at Array.forEach (<anonymous>)
    at Sandbox.runCodeEachItem (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/Sandbox.js:171:38)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Object.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/Code.node.js:96:24)
    at async Workflow.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-workflow/dist/src/Workflow.js:645:28)
    at async /usr/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:562:53

I have question, Why same data, but not work in Python Node to Code Node.

Canon88 avatar Oct 19 '22 06:10 Canon88