Outputting data to console via code node does not work
I send an http request to Amazon S3 (listing the bucket), The ‘http’ node returns an empty array, as tested inside http node. That’s fine. In the code node, I just want to see the output of the linked ‘http’ node, so I use (I guess, because it is not clear from docs)
console.log(input.all());
return $input.all(); // hope this is how to pass not transformed data further?
But what I got is an error:
A 'json' property isn't an object [item 0]
An empty array is a valid Json… So what is the way to simply print the input of the code node?
Please share your workflow
(exact url stripped for security)
Share the output returned by the last node
No output - errored
Information on your n8n setup
- n8n version:
1.29.1 - Database:
SQLite - Running n8n via:
Docker - Operating system
Windows 10