Python code not print in console

Describe the problem/error/question

I have no output in the console when i print from python code using the node CODE

What is the error message (if any)?

No error

Please share your workflow

Share the output returned by the last node

[
{}
]

Information on your n8n setup

  • n8n version:1.7.8.1
  • Database (default: SQLite):default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • Operating system:Windows 11 Pro 24H2

Also I have this log:

{"__type":"$$EventMessageWorkflow","id":"df5ca827-09b7-4571-9d74-990430955438","ts":"2025-02-16T06:58:14.376-05:00","eventName":"n8n.workflow.success","message":"n8n.workflow.success","payload":{"executionId":"99","success":true,"isManual":true,"workflowId":"GWNHHEQkybzvD2tT","workflowName":"My workflow 2"}}
{"__type":"$$EventMessageConfirm","confirm":"df5ca827-09b7-4571-9d74-990430955438","ts":"2025-02-16T06:58:14.376-05:00","source":{"id":"0","name":"eventBus"}}
{"__type":"$$EventMessageWorkflow","id":"a6329750-371e-4c88-8180-8ca8bf8fbd3c","ts":"2025-02-16T07:00:32.084-05:00","eventName":"n8n.workflow.started","message":"n8n.workflow.started","payload":{"executionId":"100","workflowId":"GWNHHEQkybzvD2tT","isManual":false,"workflowName":"My workflow 2"}}
{"__type":"$$EventMessageConfirm","confirm":"a6329750-371e-4c88-8180-8ca8bf8fbd3c","ts":"2025-02-16T07:00:32.084-05:00","source":{"id":"0","name":"eventBus"}}
{"__type":"$$EventMessageNode","id":"93eebaa2-ce3e-470a-bd11-7ce597a51169","ts":"2025-02-16T07:00:32.085-05:00","eventName":"n8n.node.started","message":"n8n.node.started","payload":{"workflowId":"GWNHHEQkybzvD2tT","workflowName":"My workflow 2","executionId":"100","nodeType":"n8n-nodes-base.manualTrigger","nodeName":"When clicking ‘Test workflow’"}}
{"__type":"$$EventMessageConfirm","confirm":"93eebaa2-ce3e-470a-bd11-7ce597a51169","ts":"2025-02-16T07:00:32.085-05:00","source":{"id":"0","name":"eventBus"}}
{"__type":"$$EventMessageNode","id":"197c0cdb-ee5c-4a49-92e0-a256b6c92c61","ts":"2025-02-16T07:00:32.086-05:00","eventName":"n8n.node.finished","message":"n8n.node.finished","payload":{"workflowId":"GWNHHEQkybzvD2tT","workflowName":"My workflow 2","executionId":"100","nodeType":"n8n-nodes-base.manualTrigger","nodeName":"When clicking ‘Test workflow’"}}
{"__type":"$$EventMessageConfirm","confirm":"197c0cdb-ee5c-4a49-92e0-a256b6c92c61","ts":"2025-02-16T07:00:32.086-05:00","source":{"id":"0","name":"eventBus"}}
{"__type":"$$EventMessageNode","id":"da01a638-6920-491f-9317-e0fb0775595c","ts":"2025-02-16T07:00:32.086-05:00","eventName":"n8n.node.started","message":"n8n.node.started","payload":{"workflowId":"GWNHHEQkybzvD2tT","workflowName":"My workflow 2","executionId":"100","nodeType":"n8n-nodes-base.code","nodeName":"Print \"Hello World\""}}
{"__type":"$$EventMessageConfirm","confirm":"da01a638-6920-491f-9317-e0fb0775595c","ts":"2025-02-16T07:00:32.086-05:00","source":{"id":"0","name":"eventBus"}}
{"__type":"$$EventMessageNode","id":"f2fa70de-5c3b-4cb7-82de-8928f7941b66","ts":"2025-02-16T07:00:32.112-05:00","eventName":"n8n.node.finished","message":"n8n.node.finished","payload":{"workflowId":"GWNHHEQkybzvD2tT","workflowName":"My workflow 2","executionId":"100","nodeType":"n8n-nodes-base.code","nodeName":"Print \"Hello World\""}}
{"__type":"$$EventMessageConfirm","confirm":"f2fa70de-5c3b-4cb7-82de-8928f7941b66","ts":"2025-02-16T07:00:32.112-05:00","source":{"id":"0","name":"eventBus"}}
{"__type":"$$EventMessageWorkflow","id":"270f710c-ed08-44e1-bbb7-ccd44fb09154","ts":"2025-02-16T07:00:32.113-05:00","eventName":"n8n.workflow.success","message":"n8n.workflow.success","payload":{"executionId":"100","success":true,"isManual":true,"workflowId":"GWNHHEQkybzvD2tT","workflowName":"My workflow 2"}}
{"__type":"$$EventMessageConfirm","confirm":"270f710c-ed08-44e1-bbb7-ccd44fb09154","ts":"2025-02-16T07:00:32.113-05:00","source":{"id":"0","name":"eventBus"}}

Hey unfortunately my guess is that they will not support console.log with python. [Using the Code node | n8n Docs](https://Suppported JavaScript Features)

The output should appear in the browser console
On chrome press f12 and open the ‘Console’ tab

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.