Facing error while running the Python Node

Hi Everyone

I am facing error with the Python node in n8n

The node is in execute state only,

The problem is, the code is just a simple return statement.

No error is returned from this node.

If anyone has faced this before, please help.

Thank You!

Hi @Yash_Kumar1

Welcome in n8n community!

I’ve checked your code - yes it doesn’t return anything. Even error.

Please try to return (there is a small adjustment in case of returned object format):

return [{"response": "your response"}]

Ready to import n8n JSON: