Hi All, my daily thread
Today i encounter a new issue,
I have a flow that parse a webhook and end up with machine name that is being alerted for some issue,
after checking the flow haven’t been triggered in the last 90 minutes, and that there is no active workflow running, i query prometheus for some metrics, check if they’re ok and if they’re ok i execute a command,
my issue is that right now no matter what i execute (to ubuntu 18.04 machines) i get back the output to stdout but null as status code,
if i fail the command i get the status code 1 (good) and the stderr (also good)
but where is my status code 0 ? it shows null
example of bad command(cat: /tralala):
[
{
"code": 1,
"signal": null,
"stdout": "",
"stderr": "cat: /tralala: No such file or directory"
}
]
example of good command (cat /tmp/testn8n) :
[
{
"code": null,
"signal": null,
"stdout": "This is a test string for n8n execute node flow.",
"stderr": ""
}
]
I also tried ending the command with pipe and “exit 0” which resulted in null
as well.
I can work with output strings, but i prefer to stick to exit codes (duhh) so it’s not that a critical issue.