Skip to content

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

@Canon88

Description

@Canon88

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions