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

Error when parsing output of PythonFunction

Open KevinRich651 opened this issue 2 years ago • 4 comments

image

According the error message, the output stderr contains invalid token /. But I am sure that the code in the PythonFunction.node is correct.

How can I get the stderr of PythonFunction.node

KevinRich651 avatar Jul 25 '23 04:07 KevinRich651

hi @naskio , do you get a chance to take a look at this issue. Might point me a right direction

KevinRich651 avatar Aug 04 '23 07:08 KevinRich651

In the n8n web page, I got the same error response as this issue.

But in the GCP cloud logging, I got the error log like this. I am quite confused about this. image

KevinRich651 avatar Aug 04 '23 07:08 KevinRich651

The python code in the node in the workflow executed normally except output the expected result. In the attached screenshot of the code, the line of code print(fileNames) executes successfully.

I am wondering what's wrong with the last line return fileNames #CHANGE

image

KevinRich651 avatar Aug 04 '23 07:08 KevinRich651

Looking forward to your suggestion

KevinRich651 avatar Aug 04 '23 07:08 KevinRich651